Skip to main content
DELETE
/
projects
/
{project_id}
/
keys
/
{id}
/
key_links
Batch unlink child keys from a parent key
curl --request DELETE \
  --url https://api.phrase.com/v2/projects/{project_id}/keys/{id}/key_links \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "child_key_ids": [
    "child_key_id1",
    "child_key_id2"
  ],
  "unlink_parent": false
}
'
{
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "Resource",
      "field": "name",
      "message": "can't be blank"
    }
  ]
}

Authorizations

Authorization
string
header
required

Enter your token in the format token TOKEN

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Path Parameters

project_id
string
required

Project ID

id
string
required

Parent Translation Key ID

Body

application/json
child_key_ids
string[]
required

The IDs of the child keys to unlink from the parent key.

Example:
["child_key_id1", "child_key_id2"]

Whether to unlink the parent key as well and unmark it as linked-key.

Response

OK