Skip to content

Create File Metadata

Create the specified file metadata.

Verb PUT
Endpoint {base-url}/files/metadata
Max Page Size N/A

Request Body

{
  "body": [
    {
      "key": "type",
      "value": "csv",
      "fileId": 7
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

Return the IDs of the created file metadata.

Response Body

[
  1
]

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified fileId values belong to a file in an organization you do not have access to.
404 MISSING_RECORD One or more of the specified fileId values does not refer to an existing file.
422 VALIDATION_ERROR A required field is missing or invalid (e.g. key is missing or exceeds 300 characters, value is missing or exceeds 300 characters).