Templates

Share a template with a group

POST
/preset/templates/{template_id}/share/{group_name}

Shares all presets in the template with the given group. The user must already belong to the group and must have write access to the template.

Presets that the user does not have write access to are skipped and not shared, but the operation still succeeds for the presets the user can share. The response includes counts of how many presets were shared, how many were already shared, and which preset codes were skipped due to insufficient access.

Authorization

token_auth
headerAuthorizationBearer <token>

Token-based authentication using access tokens.

Path Parameters

template_id*string
group_name*string

Response Body

Successful Response

application/json
  1. response
shared_count*Shared Count
already_shared_count*Already Shared Count
skipped_preset_codes*array<string>
curl -X POST "https://example.com/preset/templates/string/share/string"
{  "shared_count": 0,  "already_shared_count": 0,  "skipped_preset_codes": [    "string"  ]}