Skip to main content
POST
/
organisations
/
current
/
members
Add a member
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({accountId: '<string>', role: 'member'})
};

fetch('https://api.prudra.dev/organisations/current/members', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{}

Documentation Index

Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys

Body

application/json
accountId
string
required
role
enum<string>
default:member
Available options:
owner,
admin,
member

Response

201 - application/json

Member added

The response is of type object.