Skip to main content
GET
/
api
/
v3
/
files
/
{file_id}
/
facets
Get a file's content types and attributes
curl --request GET \
  --url https://api.lighton.ai/api/v3/files/{file_id}/facets \
  --header 'Authorization: Bearer <token>'
{
  "content_types": [
    {
      "path": "<string>",
      "code": "<string>",
      "label": "<string>",
      "attributes": [
        {
          "name": "<string>",
          "value": "<string>",
          "type": "<string>",
          "required": true,
          "label": "",
          "description": "",
          "choices": []
        }
      ],
      "labels": []
    }
  ],
  "can_edit": true,
  "unlinked": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
integer
required

Response

content_types
ContentTypeAttributesResponse · object[]
required
can_edit
boolean
required
unlinked
AttributeSchema · object[]