curl --request POST \
--url https://api.sippet.ai/api/organisations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"owner": {},
"name": "<string>",
"plan": "<string>",
"sip_domain": "<string>"
},
"relationships": {},
"type": "Organisation"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"name": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": "<string>",
"sip_domain": "<string>"
},
"relationships": {
"owner": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
},
"users": {
"data": [
{
"id": "<string>",
"type": "<string>",
"meta": {}
}
]
}
}
},
"included": [
"<unknown>"
],
"meta": {}
}/organisations operation on Organisation resource
curl --request POST \
--url https://api.sippet.ai/api/organisations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"owner": {},
"name": "<string>",
"plan": "<string>",
"sip_domain": "<string>"
},
"relationships": {},
"type": "Organisation"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"name": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plan": "<string>",
"sip_domain": "<string>"
},
"relationships": {
"owner": {
"data": {
"id": "<string>",
"type": "<string>",
"meta": {}
}
},
"users": {
"data": [
{
"id": "<string>",
"type": "<string>",
"meta": {}
}
]
}
}
},
"included": [
"<unknown>"
],
"meta": {}
}JWT for bearer authentication
Relationship paths to include in the response
^()(,())*$Limits the response fields to only those listed for each type
Show child attributes
{
"Organisation": "id,name,plan,sip_domain,owner_id"
}Request body for the /organisations operation on Organisation resource
Show child attributes
Was this page helpful?