Update a business
Changed onUpdates the business's name, slug, place, contact details, or ai_format_enabled ("Allow PurpleGrain AI to read my records"). Needs edit rights on the business.
Request
- Base URLhttps://api.purplegrain.com/api/v1
- URLhttps://api.purplegrain.com/api/v1/organizations/{id}
- AuthHTTP bearer
Path parameters
Id of the record
Query parameters
Comma-separated snake_case relationship paths to embed (JSON:API included array, or inlined for application/json). Never embedded by default; a path outside the allowed list is refused with 400 unknown_include (see the 400 response); dot notation selects children; max 10 paths. Allowed paths: city, city.location, place, place.location, services, organization_roles, organization_roles.user.
Request body
Response
Update. 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
- info
the request property
/became nullable (media type: application/json) - info
the request property
//became nullable (media type: application/vnd.api+json)
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info