v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Members

Update a member's project settings

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

patch/projects/{project_id}/members/{id}

Path parameters

project_idstring required

Project ID

idstring required

ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

project_rolestring

Member role, can be any of of Manager, Developer, Translator

locale_idsstring[]

List of locale ids the user has access to.

Example request

{
  "project_role": "Developer",
  "locale_ids": [
    "abcd1234abcd1234abcd1234",
    "abcd1234abcd1234abcd1235"
  ]
}

Response

OK

idstring
emailstring
usernamestring
rolestring
permissionsobject
locale_idsstring[]
default_locale_codesstring[]

Example response

{
  "id": "acbdacbdacbdacbdacbdacbd",
  "email": "foo@bar.com",
  "username": "myname",
  "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
    }
  ],
  "locale_ids": [
    "abcd1234abcd1234abcd1234",
    "abcd1234abcd1234abcd1235"
  ],
  "default_locale_codes": [
    "en",
    "fi"
  ],
  "spaces": [
    {
      "id": "04d36d845576b9d494d05e0b70fe813b",
      "name": "Space2",
      "created_at": "2020-12-07T12:56:21Z",
      "updated_at": "2020-12-07T12:56:21Z",
      "projects_count": 1
    }
  ],
  "project_roles": [
    {
      "project_id": "abcd1234cdef1234abcd1234cdef1234",
      "role": "Developer"
    }
  ]
}