POST
/v2/slug/generate-organizationGenerate an organization slug
Generates an organization slug from a supplied name. Provide a non-empty name; you can also pass oldSlug when generating a replacement slug.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Organization name and optional existing slug to use when generating a slug.
namestringrequired
The organization name used to generate the slug. Must contain at least one character.
oldSlugstringoptional
An existing organization slug to provide when generating a replacement.
200Returns the generated organization slug as a string.
400Returned when the request is invalid, including when `name` is missing or empty.
codestringrequired
paramsarray<object>optional
401Returned when authentication is missing or invalid.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have access to this operation.
codestringrequired
paramsarray<object>optional
404Returned when the requested resource is not found.
codestringrequired
paramsarray<object>optional
Error handling
name is required and must contain at least one character. A 400 indicates invalid input, a 401 indicates missing or invalid authentication, a 403 indicates insufficient access, and a 404 indicates that the requested resource was not found.