CD Drive

Upload a file to the customer's private CD Drive.

post/api/v2/cddrive/files/content

Request

  • Base URL
    https://contentdepot.prss.org (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Authorization code: /api/oauth2/authorize
    Token URL: /api/oauth2/token scopes: cd:full

Headers

Content-MD5string md5

If present, the MD5 will be compared against the file received as a message integrity check.

Request body multipart/form-data

filestring binary

The file content being uploaded.

namestring

The name of the file, including extension. Filename must start and end with a letter or number, and can only contain letters, numbers, periods, hyphens, underscores, and spaces.

parent-idinteger

The ID of the parent folder or 0 for the root folder.

Response

The file was created successfully. The response contains the file metadata.

namestring required

The name of the file including the extension.

parentIdinteger required

The ID of the parent folder or 0 for the root folder.

idinteger required

The ID of the file.

createdDatestring date-time required

The date and time the file was created in ISO 8601 format.

lastModifiedDatestring date-time required

The date and time the file was last modified in ISO 8601 format.

sizeinteger

The size of the file in bytes.

Changes

    • breaking

      the response's property format changed from dateTimed to date-time for status

    • breaking

      the response's property format changed from dateTime to date-time for status

    • warning

      changed the pattern of the request property from ^[a-zA-Z0-9][a-zA-Z0-9 \._]*[a-zA-Z0-9]$ to ^[a-zA-Z0-9][a-zA-Z0-9 \._-]*[a-zA-Z0-9]$

    • info

      the response's property pattern was changed from ^[a-zA-Z0-9][a-zA-Z0-9 \._]*[a-zA-Z0-9]$ to ^[a-zA-Z0-9][a-zA-Z0-9 \._-]*[a-zA-Z0-9]$ for the status