Organizations
Create a business
Creates a business and makes the signed-in person its owner. name is required. The slug is generated from the name when it is missing or too short.
post/organizations
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/organizations
- Auth: HTTP bearer
Query parameters
includestring
Example:organization_roles.user
Comma-separated snake_case relationship paths to embed (JSON:API included array, or inlined for application/json). Never embedded by default; unknown paths ignored; dot notation selects children; max 10 paths. Allowed paths: city, city.location, place, place.location, services, organization_roles, organization_roles.user.
Request body
Response
Created. When the include query parameter is used, the response may contain an included array (JSON:API) or inlined related resources (application/json).
Example response
{
"data": {
"type": "organization"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.