Skip to main content
POST
/
api
/
v1
/
memberships
Add Permission for User
curl --request POST \
  --url https://vision.pingintel.com/api/v1/memberships \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "company_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "division_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "team_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": 123,
  "membership_type": "member"
}'
{
  "company_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "division_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "team_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": 123,
  "user_email": "<string>",
  "user_first_name": "<string>",
  "user_last_name": "<string>",
  "membership_type": "member"
}

Authorizations

Authorization
string
header
required

Supports Token-prefixed API keys and Bearer-prefixed JWT-based authentication.

Body

company_uuid
string<uuid> | null

UUID of the company the user belongs to.

division_uuid
string<uuid> | null

UUID of the division the user belongs to.

team_uuid
string<uuid> | null

UUID of the team the user belongs to.

user_id
integer
membership_type
enum<string>
default:member
  • member - Member
  • admin - Admin
  • owner - Owner
Available options:
member,
admin,
owner

Response

201 - application/json
uuid
string<uuid>
required
user_email
string
required
user_first_name
string
required
user_last_name
string
required
company_uuid
string<uuid> | null

UUID of the company the user belongs to.

division_uuid
string<uuid> | null

UUID of the division the user belongs to.

team_uuid
string<uuid> | null

UUID of the team the user belongs to.

user_id
integer
membership_type
enum<string>
default:member
  • member - Member
  • admin - Admin
  • owner - Owner
Available options:
member,
admin,
owner