Skip to content

Latest commit

 

History

History
166 lines (92 loc) · 5.41 KB

GlossaryTermTranslationsApi.md

File metadata and controls

166 lines (92 loc) · 5.41 KB

\GlossaryTermTranslationsApi

All URIs are relative to https://api.phrase.com/v2

Method HTTP request Description
GlossaryTermTranslationCreate Post /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations Create a translation for a term
GlossaryTermTranslationDelete Delete /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} Delete a translation for a term
GlossaryTermTranslationUpdate Patch /accounts/{account_id}/glossaries/{glossary_id}/terms/{term_id}/translations/{id} Update a translation for a term

GlossaryTermTranslationCreate

GlossaryTermTranslation GlossaryTermTranslationCreate(ctx, accountId, glossaryId, termId, glossaryTermTranslationCreateParameters, optional)

Create a translation for a term

Create a new translation for a term in a term base (previously: glossary).

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Account ID
glossaryId string Glossary ID
termId string Term ID
glossaryTermTranslationCreateParameters GlossaryTermTranslationCreateParameters
optional *GlossaryTermTranslationCreateOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GlossaryTermTranslationCreateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

GlossaryTermTranslation

Authorization

Basic, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GlossaryTermTranslationDelete

GlossaryTermTranslationDelete(ctx, accountId, glossaryId, termId, id, optional)

Delete a translation for a term

Delete an existing translation of a term in a term base (previously: glossary).

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Account ID
glossaryId string Glossary ID
termId string Term ID
id string ID
optional *GlossaryTermTranslationDeleteOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GlossaryTermTranslationDeleteOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

(empty response body)

Authorization

Basic, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GlossaryTermTranslationUpdate

GlossaryTermTranslation GlossaryTermTranslationUpdate(ctx, accountId, glossaryId, termId, id, glossaryTermTranslationUpdateParameters, optional)

Update a translation for a term

Update an existing translation for a term in a term base (previously: glossary).

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Account ID
glossaryId string Glossary ID
termId string Term ID
id string ID
glossaryTermTranslationUpdateParameters GlossaryTermTranslationUpdateParameters
optional *GlossaryTermTranslationUpdateOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GlossaryTermTranslationUpdateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

GlossaryTermTranslation

Authorization

Basic, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]