Create a group with SCIM
Creates a user group in a Canva team.
The displayName
of the group can't already be in use by an existing group within the same Canva Team.
HTTP method and URL path
https://www.canva.com /_scim /v2 /Groups
Header parameters
Indicates the media type of the information sent in the request. This must be set to application/scim+json
.
For example: Content-Type: application/scim+json
Body parameters
The value for this can only be urn:ietf:params:scim:schemas:core:2.0:Group
.
The name of the group, suitable for display to end-users.
Example request
Examples for using the /_scim/v2/Groups
endpoint:
curl --request POST 'https://www.canva.com/_scim/v2/Groups' \--header 'Authorization: Bearer {token}' \--header 'Content-Type: application/scim+json' \--data '{"schemas": "urn:ietf:params:scim:schemas:core:2.0:Group","displayName": "White rabbits"}'
Success response
If successful, the endpoint returns a 201
response with a JSON body with the following parameters:
The value for this can only be urn:ietf:params:scim:schemas:core:2.0:Group
.
The Canva-generated SCIM ID for the group.
The name of the group, suitable for display to end-users.
Example response
{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],"id": "UAFgrpb1abC","meta": {"resourceType": "Group","created": "2023-09-18T06:08:35Z"},"displayName": "White rabbits","members": []}
Error responses
409 Conflict
The value for this can only be urn:ietf:params:scim:api:messages:2.0:Error
.
The value for this can only be Group with name {group_name} already exists.
.
The HTTP status code of the error.
Example error response
{"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],"detail": "Group with name White rabbits already exists.","status": "409"}