Context

List string to context bindings

Changed on

Returns a paginated list of bindings according to specified parameters.

Response is limited to 5000 items, to retrieve all items the request should be repeated with offset parameter specified.

post/context-api/v2/projects/{projectId}/bindings/list

Request

  • Base URL
    https://api.smartling.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.

Example:84c012a33

A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.

Query parameters

offsetstring

If your original request returns an offset value, the set of results is incomplete. Run the request again, with the given offset value to see more results. When offset is null, there are no more results to return.

Request body

stringHashcodesHashcode[]

List of the hashcodes for the strings to get bindings for.

contentFileUristring

URI path of a source file within a Smartling project.

contextUidstring uuid

ContextUID to get bindings for.

bindingUidsstring[]

List of unique binding identifiers.

Example request

{
  "stringHashcodes": [
    "d41d8cd98f00b204e9800998ecf8427e"
  ],
  "contentFileUri": "/content/en/home.json"
}

Response

OK

Example response

{
  "response": {
    "data": {
      "items": [
        {
          "stringHashcode": "d41d8cd98f00b204e9800998ecf8427e"
        }
      ]
    }
  }
}

Changes

    • breaking

      added the pattern ^[a-z0-9]{9}$ to the path request parameter projectId

    • breaking

      added to the request property allOf list

    • breaking

      added the pattern ^[a-f0-9]{32}$ to the request property /

    • breaking

      the request property type changed from string to no type

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the ///// response's property type changed from string to no type for status

    • info

      for the path request parameter projectId, the format was generalized from uuid to no format

    • info

      added to the ///// response property allOf list for the response status

    • info

      endpoint added