Update project file metadata

PATCH/projects/{projectId}/files/{fileId}

Base URL: https://api.tinkermode.com

Update the metadata of the specified project file.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user API key of a user with permission to update project files, a service account token with the same permission, or a project API key with admin permissions.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
fileIdstringYesProject file ID.

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
attributesobjectNoAttributes associated with the entity file, separated as key-value pairs.
expirationDatestringNoformat: date-timeTimestamp indicating when the entity file should expire.
tagsarrayNoA collection of unique string identifiers associated with the entity file.

Request example

{
  "attributes": {
    "errorCode": 42,
    "eventId": "20231101",
    "eventType": "crash"
  },
  "expirationDate": "2024-11-01T12:17:56Z",
  "tags": [
    "camera1",
    "eventId:20231101",
    "eventType:crash"
  ]
}

Responses

204 Successful update of project file metadata.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of invalid data or denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

404 The requested file does not exist or is not accessible.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.