Files

Add Label to File

Changed on

Add a label to a File.

Example CURL:

curl -X POST 'https://api.lilt.com/v2/files/labels?key=API_KEY&id=1'
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "label_name"
}'
post/v2/files/labels

Request

  • Base URL
    https://api.lilt.com
  • URL
    https://api.lilt.com/v2/files/labels
  • Auth
    HTTP basic

Query parameters

idstring required

A File id.

Request body

namestring

The Label name.

Example request

{
  "name": "label_name"
}

Response

A success response.

Changes

    • breaking

      added the new required query request parameter id

    • breaking

      added required request body

    • info

      api operation id addLabel was added

    • info

      added the non-success response with the status

    • info

      added the success response with the status