Skip to content

Commit a03dcb1

Browse files
author
Phrase
committed
1 parent 63c30e4 commit a03dcb1

241 files changed

Lines changed: 277 additions & 256 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎api/openapi.yaml‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34877,7 +34877,12 @@ paths:
3487734877
x-accepts: application/json
3487834878
/projects/{project_id}/keys/{id}/key_links/{child_key_id}:
3487934879
delete:
34880-
description: Unlinks a single child key from a given parent key.
34880+
description: |
34881+
Removes a single child key from a parent key's link group. A link group is the relationship model that keeps child keys synchronized with a parent: while linked, a child key's translations are derived from the parent's content. When you call this endpoint, the child key leaves the group and becomes independent — its existing translations are updated with the parent's current content and then marked unverified, signalling that reviewers should confirm the content is still appropriate for the child's context.
34882+
34883+
Use this endpoint when you need to detach one specific child key while keeping other children linked. To detach multiple children at once, use the batch unlink endpoint. This operation is only available on main projects.
34884+
34885+
It returns 422 when the child key is not currently linked to the specified parent key, or when a translation update fails during the unlink process.
3488134886
operationId: key_links/destroy
3488234887
parameters:
3488334888
- description: Two-Factor-Authentication token (optional)
@@ -34904,17 +34909,27 @@ paths:
3490434909
schema:
3490534910
type: string
3490634911
style: simple
34907-
- description: The ID of the child key to unlink.
34912+
- description: The ID of the child translation key to unlink from the parent.
3490834913
explode: false
3490934914
in: path
3491034915
name: child_key_id
3491134916
required: true
3491234917
schema:
34918+
example: 1234abcd1234cdef1234abcd1234cdef
3491334919
type: string
3491434920
style: simple
3491534921
responses:
3491634922
"200":
34917-
description: OK
34923+
content: {}
34924+
description: The child key was successfully unlinked from the parent key.
34925+
The response body is empty.
34926+
headers:
34927+
X-Rate-Limit-Limit:
34928+
$ref: '#/components/headers/X-Rate-Limit-Limit'
34929+
X-Rate-Limit-Remaining:
34930+
$ref: '#/components/headers/X-Rate-Limit-Remaining'
34931+
X-Rate-Limit-Reset:
34932+
$ref: '#/components/headers/X-Rate-Limit-Reset'
3491834933
"400":
3491934934
description: "Bad request. The request could not be parsed or a parameter\
3492034935
\ failed validation. Verify the request body, the content type, and the\
@@ -34983,6 +34998,12 @@ paths:
3498334998
summary: Unlink a child key from a parent key
3498434999
tags:
3498535000
- Linked Keys
35001+
x-code-samples:
35002+
- lang: Curl
35003+
source: |-
35004+
curl -i "https://api.phrase.com/v2/projects/:project_id/keys/:id/key_links/1234abcd1234cdef1234abcd1234cdef" \
35005+
-u USERNAME_OR_ACCESS_TOKEN \
35006+
-X DELETE
3498635007
x-accepts: application/json
3498735008
/accounts/{account_id}/automations:
3498835009
get:

‎docs/LinkedKeysApi.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Name | Type | Description | Notes
185185
186186
Unlink a child key from a parent key
187187

188-
Unlinks a single child key from a given parent key.
188+
Removes a single child key from a parent key's link group. A link group is the relationship model that keeps child keys synchronized with a parent: while linked, a child key's translations are derived from the parent's content. When you call this endpoint, the child key leaves the group and becomes independent — its existing translations are updated with the parent's current content and then marked unverified, signalling that reviewers should confirm the content is still appropriate for the child's context. Use this endpoint when you need to detach one specific child key while keeping other children linked. To detach multiple children at once, use the batch unlink endpoint. This operation is only available on main projects. It returns 422 when the child key is not currently linked to the specified parent key, or when a translation update fails during the unlink process.
189189

190190
### Example
191191
```java
@@ -215,7 +215,7 @@ public class Example {
215215
LinkedKeysApi apiInstance = new LinkedKeysApi(defaultClient);
216216
String projectId = "projectId_example"; // String | Project ID
217217
String id = "id_example"; // String | Parent Translation Key ID
218-
String childKeyId = "childKeyId_example"; // String | The ID of the child key to unlink.
218+
String childKeyId = "1234abcd1234cdef1234abcd1234cdef"; // String | The ID of the child translation key to unlink from the parent.
219219
String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
220220
try {
221221
apiInstance.keyLinksDestroy(projectId, id, childKeyId, xPhraseAppOTP);
@@ -236,7 +236,7 @@ Name | Type | Description | Notes
236236
------------- | ------------- | ------------- | -------------
237237
**projectId** | **String**| Project ID |
238238
**id** | **String**| Parent Translation Key ID |
239-
**childKeyId** | **String**| The ID of the child key to unlink. |
239+
**childKeyId** | **String**| The ID of the child translation key to unlink from the parent. |
240240
**xPhraseAppOTP** | **String**| Two-Factor-Authentication token (optional) | [optional]
241241

242242
### Return type
@@ -255,7 +255,7 @@ null (empty response body)
255255
### HTTP response details
256256
| Status code | Description | Response headers |
257257
|-------------|-------------|------------------|
258-
**200** | OK | - |
258+
**200** | The child key was successfully unlinked from the parent key. The response body is empty. | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
259259
**400** | Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry. | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |
260260
**401** | Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry. | - |
261261
**403** | Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions. | * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> |

‎src/main/java/com/phrase/client/ApiException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.Map;
1616
import java.util.List;
1717

18-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
18+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
1919
public class ApiException extends Exception {
2020
private int code = 0;
2121
private Map<String, List<String>> responseHeaders = null;

‎src/main/java/com/phrase/client/Configuration.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
1616
public class Configuration {
1717
private static ApiClient defaultApiClient = new ApiClient();
1818

‎src/main/java/com/phrase/client/Pair.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
1616
public class Pair {
1717
private String name = "";
1818
private String value = "";

‎src/main/java/com/phrase/client/StringUtil.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
package com.phrase.client;
1414

15-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
15+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
1616
public class StringUtil {
1717
/**
1818
* Check if the given array contains the given value (with case-insensitive comparison).

‎src/main/java/com/phrase/client/api/LinkedKeysApi.java‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,15 @@ public okhttp3.Call keyLinksCreateAsync(String projectId, String id, KeyLinksCre
381381
* Build call for keyLinksDestroy
382382
* @param projectId Project ID (required)
383383
* @param id Parent Translation Key ID (required)
384-
* @param childKeyId The ID of the child key to unlink. (required)
384+
* @param childKeyId The ID of the child translation key to unlink from the parent. (required)
385385
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
386386
* @param _callback Callback for upload/download progress
387387
* @return Call to execute
388388
* @throws ApiException If fail to serialize the request body object
389389
* @http.response.details
390390
<table summary="Response Details" border="1">
391391
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
392-
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
392+
<tr><td> 200 </td><td> The child key was successfully unlinked from the parent key. The response body is empty. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
393393
<tr><td> 400 </td><td> Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
394394
<tr><td> 401 </td><td> Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry. </td><td> - </td></tr>
395395
<tr><td> 403 </td><td> Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
@@ -460,16 +460,16 @@ private okhttp3.Call keyLinksDestroyValidateBeforeCall(String projectId, String
460460

461461
/**
462462
* Unlink a child key from a parent key
463-
* Unlinks a single child key from a given parent key.
463+
* Removes a single child key from a parent key&#39;s link group. A link group is the relationship model that keeps child keys synchronized with a parent: while linked, a child key&#39;s translations are derived from the parent&#39;s content. When you call this endpoint, the child key leaves the group and becomes independent — its existing translations are updated with the parent&#39;s current content and then marked unverified, signalling that reviewers should confirm the content is still appropriate for the child&#39;s context. Use this endpoint when you need to detach one specific child key while keeping other children linked. To detach multiple children at once, use the batch unlink endpoint. This operation is only available on main projects. It returns 422 when the child key is not currently linked to the specified parent key, or when a translation update fails during the unlink process.
464464
* @param projectId Project ID (required)
465465
* @param id Parent Translation Key ID (required)
466-
* @param childKeyId The ID of the child key to unlink. (required)
466+
* @param childKeyId The ID of the child translation key to unlink from the parent. (required)
467467
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
468468
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
469469
* @http.response.details
470470
<table summary="Response Details" border="1">
471471
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
472-
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
472+
<tr><td> 200 </td><td> The child key was successfully unlinked from the parent key. The response body is empty. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
473473
<tr><td> 400 </td><td> Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
474474
<tr><td> 401 </td><td> Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry. </td><td> - </td></tr>
475475
<tr><td> 403 </td><td> Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
@@ -484,17 +484,17 @@ public void keyLinksDestroy(String projectId, String id, String childKeyId, Stri
484484

485485
/**
486486
* Unlink a child key from a parent key
487-
* Unlinks a single child key from a given parent key.
487+
* Removes a single child key from a parent key&#39;s link group. A link group is the relationship model that keeps child keys synchronized with a parent: while linked, a child key&#39;s translations are derived from the parent&#39;s content. When you call this endpoint, the child key leaves the group and becomes independent — its existing translations are updated with the parent&#39;s current content and then marked unverified, signalling that reviewers should confirm the content is still appropriate for the child&#39;s context. Use this endpoint when you need to detach one specific child key while keeping other children linked. To detach multiple children at once, use the batch unlink endpoint. This operation is only available on main projects. It returns 422 when the child key is not currently linked to the specified parent key, or when a translation update fails during the unlink process.
488488
* @param projectId Project ID (required)
489489
* @param id Parent Translation Key ID (required)
490-
* @param childKeyId The ID of the child key to unlink. (required)
490+
* @param childKeyId The ID of the child translation key to unlink from the parent. (required)
491491
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
492492
* @return ApiResponse&lt;Void&gt;
493493
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
494494
* @http.response.details
495495
<table summary="Response Details" border="1">
496496
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
497-
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
497+
<tr><td> 200 </td><td> The child key was successfully unlinked from the parent key. The response body is empty. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
498498
<tr><td> 400 </td><td> Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
499499
<tr><td> 401 </td><td> Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry. </td><td> - </td></tr>
500500
<tr><td> 403 </td><td> Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
@@ -510,18 +510,18 @@ public ApiResponse<Void> keyLinksDestroyWithHttpInfo(String projectId, String id
510510

511511
/**
512512
* Unlink a child key from a parent key (asynchronously)
513-
* Unlinks a single child key from a given parent key.
513+
* Removes a single child key from a parent key&#39;s link group. A link group is the relationship model that keeps child keys synchronized with a parent: while linked, a child key&#39;s translations are derived from the parent&#39;s content. When you call this endpoint, the child key leaves the group and becomes independent — its existing translations are updated with the parent&#39;s current content and then marked unverified, signalling that reviewers should confirm the content is still appropriate for the child&#39;s context. Use this endpoint when you need to detach one specific child key while keeping other children linked. To detach multiple children at once, use the batch unlink endpoint. This operation is only available on main projects. It returns 422 when the child key is not currently linked to the specified parent key, or when a translation update fails during the unlink process.
514514
* @param projectId Project ID (required)
515515
* @param id Parent Translation Key ID (required)
516-
* @param childKeyId The ID of the child key to unlink. (required)
516+
* @param childKeyId The ID of the child translation key to unlink from the parent. (required)
517517
* @param xPhraseAppOTP Two-Factor-Authentication token (optional) (optional)
518518
* @param _callback The callback to be executed when the API call finishes
519519
* @return The request call
520520
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
521521
* @http.response.details
522522
<table summary="Response Details" border="1">
523523
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
524-
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
524+
<tr><td> 200 </td><td> The child key was successfully unlinked from the parent key. The response body is empty. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
525525
<tr><td> 400 </td><td> Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>
526526
<tr><td> 401 </td><td> Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry. </td><td> - </td></tr>
527527
<tr><td> 403 </td><td> Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions. </td><td> * X-Rate-Limit-Limit - <br> * X-Rate-Limit-Remaining - <br> * X-Rate-Limit-Reset - <br> </td></tr>

‎src/main/java/com/phrase/client/auth/ApiKeyAuth.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
2121
public class ApiKeyAuth implements Authentication {
2222
private final String location;
2323
private final String paramName;

‎src/main/java/com/phrase/client/auth/HttpBearerAuth.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.List;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:03:32.197082216Z[Etc/UTC]")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-25T10:54:28.948677054Z[Etc/UTC]")
2121
public class HttpBearerAuth implements Authentication {
2222
private final String scheme;
2323
private String bearerToken;

0 commit comments

Comments
 (0)