Skip to main content
PATCH
/
accounts
/
{account_id}
/
members
/
{id}
cURL
curl "https://api.phrase.com/v2/accounts/:account_id/members/:id" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X PATCH \
  -d '{"role":"Developer","strategy":"set","project_ids":"abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235","locale_ids":"abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235","default_locale_codes":["de","en"],"space_ids":["abcd1234abcd1234abcd1234","abcd1234abcd1234abcd1235"],"permissions":{"create_upload":true,"review_translations":true}}' \
  -H 'Content-Type: application/json'
{
  "id": "acbdacbdacbdacbdacbdacbd",
  "email": "[email protected]",
  "username": "myname",
  "created_at": "2020-12-07T12:56:21Z",
  "last_activity_at": "2020-12-09T12:56:21Z",
  "role": "Manager",
  "projects": [
    {
      "id": "abcd1234cdef1234abcd1234cdef1234",
      "name": "My Android Project",
      "main_format": "xml",
      "created_at": "2015-01-28T09:52:53Z",
      "updated_at": "2015-01-28T09:52:53Z",
      "locales": [
        {
          "id": "abcd1234cdef1234abcd1234cdef1234",
          "name": "English",
          "code": "en-Gb"
        }
      ]
    }
  ],
  "permissions": [
    {
      "create_upload": true,
      "review_translations": true
    }
  ],
  "default_locale_codes": [
    "en",
    "fi"
  ],
  "teams": [
    {
      "id": "04d36d845576b9d494d05e0b70fe813c",
      "name": "Team 1",
      "created_at": "2020-12-07T12:56:21Z",
      "updated_at": "2020-12-07T12:56:21Z"
    }
  ],
  "spaces": [
    {
      "id": "04d36d845576b9d494d05e0b70fe813b",
      "name": "Space2",
      "created_at": "2020-12-07T12:56:21Z",
      "updated_at": "2020-12-07T12:56:21Z",
      "projects_count": 1
    }
  ]
}

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

account_id
string
required

Account ID

id
string
required

ID

Body

application/json
strategy
string

Update strategy, can be any of set, add, remove. If provided, it will set, add or remove given spaces, projects and locale ids from users access list.

Example:

"set"

role
string

Member role, can be any of of Admin, ProjectManager, Developer, Designer, Translator

Example:

"Developer"

project_ids
string

List of project ids the user has access to.

Example:

"abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235"

locale_ids
string

List of locale ids the user has access to.

Example:

"abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235"

default_locale_codes
string[]

List of default locales for the user.

Example:
["en", "fi"]
space_ids
string[]

List of spaces the user is assigned to.

Example:
[
"abcd1234abcd1234abcd1234",
"abcd1234abcd1234abcd1235"
]
permissions
object

Additional permissions depending on member role. Available permissions are create_upload and review_translations

Example:
{
"create_upload": true,
"review_translations": true
}

Response

OK

id
string
email
string
username
string
created_at
string<date-time>
last_activity_at
string<date-time>
role
string
projects
project_locales · object[]
permissions
object
default_locale_codes
string[]
teams
team_short · object[]
spaces
object[]