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

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

Path Parameters

id
string
required

Body

application/json
userId
string
required
Minimum string length: 1
role
enum<string>
default:member
Available options:
owner,
admin,
member

Response

Member added successfully

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