English
cURL
curl "https://api.phrase.com/v2/projects/:project_id/members/: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]", "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" } ] }
Update user settings in the project. Access token scope must include team.manage.
team.manage
Enter your token in the format token TOKEN
token TOKEN
Two-Factor-Authentication token (optional)
Project ID
ID
Member role, can be any of of Manager, Developer, Translator
"Developer"
List of locale ids the user has access to.
[ "abcd1234abcd1234abcd1234", "abcd1234abcd1234abcd1235"]
OK
Show child attributes
Was this page helpful?