Skip to content

Patch a content instance
Stable

Request

Security
apiKey
Path
content_idstring, (uuid)required

A UUID string identifying a content instance.

enterprise_idstringrequired

A UUID string identifying enterprise.

Body*/*
tagsArray of strings(Tags)

Tags for the content

descriptionstring(Description)

Description of the content

cURL
curl -i -X PATCH \
  'https://develop-api.esper.io/_mock/openapi/v0/enterprise/{enterprise_id}/content/{content_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: */*' \
  -d '{
    "tags": [
      "string"
    ],
    "description": "string"
  }'

Responses

successful operation

Bodyapplication/json
idinteger(Id)read-onlyrequired

Unique content Identifier

download_urlstring, (url)(Content download URL)

URL to download the content

namestring(Name)

Name of the content

keystring, [ 1 .. 255 ] characters(Key)
is_dirboolean(Is Directory)
Default:false
kindstring or null, <= 255 characters(Content kind)

The mime type of the content

hashstring(Content Hash)

Hash string of the content

sizestring, <= 255 characters(Content Size)

Size of the content in bytes

pathstring(Path)

Path to the content

permissionsstring(Permissions)

The permssion string for the content

tagsArray of strings(Content tags)

Tags for the content

descriptionstring or null(Content description)

Description for the content

createdstring, (date-time)(Created on)read-only
modifiedstring, (date-time)(Modified on)read-only
enterprisestring, (url)(Enterprise)

URL of the enterprise resource

ownerobject(Owner)

Owner of the content

Response
{ "id": 0, "download_url": "string", "name": "string", "key": "string", "is_dir": false, "kind": "string", "hash": "string", "size": "string", "path": "string", "permissions": "string", "tags": [ "string" ], "description": "string", "created": "2019-08-24T14:15:22Z", "modified": "2019-08-24T14:15:22Z", "enterprise": "string", "owner": { "id": 0, "username": "string" } }