Skip to navigation

Add a person to a project

Adds a person of the account to the project, so they see it while it is restricted. Adding a person who is already there returns their row and changes nothing. A user id that is not a person in the account returns 404 member_not_found. Removing the person from the account removes the row.

Scope: admin. People: owner or admin.

curl -sS -X PUT "$MEADOW_BASE_URL/v1/projects/$PROJECT_ID/members/$USER_ID" \
-H "Authorization: Bearer $SESSION_TOKEN"

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Path parameters

project_idstringRequired

The project id.

user_idstringRequired
The person's user id.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The person's row on the project.
user_idstring
The person's user id.
emailstring
The person's email.
added_atdatetime
When the person was added to the project.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error