v1

latestOpenAPI 3.1.02026-07-14159142161.9 KB
filesService

Update files by entity

Update the entity_id for a group of files determined by entityType and entityId

It's okay to specify the parameters in the request body instead of query.

At the moment this is used internally to bind earlier uploaded files to an entity

patch/files/v1/files?entityType&entityId

Query parameters

entityType'comment' | 'post' | 'task'

Entity type name

entityIdinteger required

Entity ID

Request body

entityIdinteger

Response

Successful response

Example response

{
  "data": [
    {
      "id": 1,
      "entityType": "post",
      "entityId": 1,
      "uploadId": "369c4620-adee-4526-a0d8-a1db20bcf5b2",
      "originalFilename": "sample.jpg",
      "lastModified": 1664629542,
      "size": 123456,
      "url": "https://aws.s3.amazonaws.com/my-bucket/61/dd/61ddc0045c05ba7537b63e63184b9203.jpg"
    }
  ]
}