Update Resource

Update Resource

Update resource metadata. Mime type can't be updated separately from content.

Request
URI
PUT
https://{api_host}/vco/api/resources/{id}
COPY
Path Parameters
string
id
Required

id


Request Body
Resource of type(s) application/json
Required
{
    "relations": {
        "startIndex": 0,
        "count": 0,
        "total": 0,
        "link": [
            {
                "rel": "string",
                "type": "string",
                "attributes": [
                    {
                        "name": "string",
                        "displayName": "string",
                        "value": "string",
                        "displayValue": "string"
                    }
                ],
                "href": "string"
            }
        ]
    },
    "id": "string",
    "name": "string",
    "description": "string",
    "version": "string",
    "status": 0,
    "href": "string",
    "category-id": "string",
    "mime-type": "string"
}
object
relations
Optional

relations

string
id
Optional

id

string
name
Optional

name

string
description
Optional

description

string
version
Optional

version

integer As int32 As int32
status
Optional

status

string
href
Optional

href

string
category-id
Optional

category-id

string
mime-type
Optional

mime-type

Authentication
This operation uses the following authentication methods.
Responses
200

The request is successful

Operation doesn't return any data structure

204

No Content

Operation doesn't return any data structure

400

The request is invalid

Operation doesn't return any data structure

401

User is not authorized

Operation doesn't return any data structure

404

Cannot find resource with the specified ID.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/vco/api/resources/{id}