Skip to main content
POST
/
v1
/
atlas
/
organizations
/
:id
/
projects
/
:projectId
/
members
/
:userId
Add project member
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({role: 'member'})
};

fetch('http://localhost:4010/v1/atlas/organizations/:id/projects/:projectId/members/:userId', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "projectId": "<string>",
    "userId": "<string>",
    "role": "admin",
    "createdAt": "2023-11-07T05:31:56Z",
    "user": {
      "id": "<string>",
      "email": "<string>",
      "name": "<string>"
    }
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Path Parameters

id
string
required
projectId
string
required
userId
string
required

Body

application/json
role
enum<string>
default:member
Available options:
admin,
member,
viewer

Response

Member added successfully

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required