Skip to main content
PATCH
/
projects
/
{project_id}
/
invitations
/
{id}
cURL
curl "https://api.phrase.com/v2/projects/:project_id/invitations/:id" \
  -u USERNAME_OR_ACCESS_TOKEN \
  -X PATCH \
  -d '{"project_role":"Developer","locale_ids":["fff565db236400772368235db2c6117e","fff565db236400772368235db2c6117f"]}' \
  -H 'Content-Type: application/json'
{
  "id": "acbdacbdacbdacbdacbdacbd",
  "email": "[email protected]",
  "role": "Manager",
  "state": "accepted",
  "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"
    }
  ],
  "default_locale_codes": [
    "en",
    "de"
  ],
  "permissions": [
    {
      "create_upload": true,
      "review_translations": true
    }
  ],
  "locale_ids": [
    "abcd1234abcd1234abcd1234",
    "abcd1234abcd1234abcd1235"
  ],
  "created_at": "2015-01-28T09:52:53Z",
  "updated_at": "2015-01-28T09:52:53Z",
  "accepted_at": "2015-02-28T09:52:53Z",
  "spaces": [
    {
      "id": "04d36d845576b9d494d05e0b70fe813b",
      "name": "Space2",
      "created_at": "2020-12-07T12:56:21Z",
      "updated_at": "2020-12-07T12:56:21Z",
      "projects_count": 1
    }
  ],
  "teams": [
    {
      "id": "04d36d845576b9d494d05e0b70fe813c",
      "name": "Team 1",
      "created_at": "2020-12-07T12:56:21Z",
      "updated_at": "2020-12-07T12:56:21Z"
    }
  ],
  "project_roles": [
    {
      "project_id": "abcd1234cdef1234abcd1234cdef1234",
      "role": "Developer"
    }
  ]
}

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

project_id
string
required

Project ID

id
string
required

ID

Body

application/json
project_role
string

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

Example:

"Developer"

locale_ids
string[]

List of locale ids the user has access to.

Example:
[
"abcd1234abcd1234abcd1234",
"abcd1234abcd1234abcd1235"
]

Response

OK

id
string
email
string
role
string
state
string
projects
project_short · object[]
locales
locale_preview · object[]
teams
team_short · object[]
default_locale_codes
string[]
permissions
object
locale_ids
string[]
created_at
string<date-time>
updated_at
string<date-time>
accepted_at
string<date-time>
spaces
any[]
project_role
object[]