Skip to content

Latest commit

 

History

History
252 lines (142 loc) · 7.65 KB

MembersApi.md

File metadata and controls

252 lines (142 loc) · 7.65 KB

\MembersApi

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

Method HTTP request Description
MemberDelete Delete /accounts/{account_id}/members/{id} Remove a user from the account
MemberShow Get /accounts/{account_id}/members/{id} Get single member
MemberUpdate Patch /accounts/{account_id}/members/{id} Update a member
MemberUpdateSettings Patch /projects/{project_id}/members/{id} Update a member's project settings
MembersList Get /accounts/{account_id}/members List members

MemberDelete

MemberDelete(ctx, accountId, id, optional)

Remove a user from the account

Remove a user from the account. The user will be removed from the account but not deleted from Phrase. Access token scope must include team.manage.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a MemberDeleteOpts 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]

MemberShow

Member MemberShow(ctx, accountId, id, optional)

Get single member

Get details on a single user in the account. Access token scope must include team.manage.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a MemberShowOpts struct

Name Type Description Notes

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

Return type

Member

Authorization

Basic, Token

HTTP request headers

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

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

MemberUpdate

Member MemberUpdate(ctx, accountId, id, memberUpdateParameters, optional)

Update a member

Update user permissions in the account. Developers and translators need project_ids and locale_ids assigned to access them. Access token scope must include team.manage.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Account ID
id string ID
memberUpdateParameters MemberUpdateParameters
optional *MemberUpdateOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a MemberUpdateOpts struct

Name Type Description Notes

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

Return type

Member

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]

MemberUpdateSettings

MemberProjectDetail MemberUpdateSettings(ctx, projectId, id, memberUpdateSettingsParameters, optional)

Update a member's project settings

Update user settings in the project. Access token scope must include team.manage.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
id string ID
memberUpdateSettingsParameters MemberUpdateSettingsParameters
optional *MemberUpdateSettingsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a MemberUpdateSettingsOpts struct

Name Type Description Notes

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

Return type

MemberProjectDetail

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]

MembersList

[]Member MembersList(ctx, accountId, optional)

List members

Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include team.manage.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountId string Account ID
optional *MembersListOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a MembersListOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | page | optional.Int32| Page number | perPage | optional.Int32| Limit on the number of objects to be returned, between 1 and 100. 25 by default |

Return type

[]Member

Authorization

Basic, Token

HTTP request headers

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

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