CD Drive

Create a folder.

Changed on

Create a new folder in the customer's private CD Drive.

post/api/v2/cddrive/folders

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

Request body application/x-www-form-urlencoded

namestring

the name of the folder

parent-idinteger

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

Response

The folder information.

namestring required

The name of the folder.

parentIdinteger required

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

idinteger required

The ID of the folder.

createdDatestring date-time required

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

lastModifiedDatestring date-time required

The date and time the folder was last modified in ISO 8601 format. This may only represent a modification to to the folder metadata itself, not to the contents of the folder.

Changes

    • breaking

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

    • breaking

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

    • info

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

    • info

      added the non-success response with the status

    • info

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