Design systems
/v1/design-systems- post
/v1/design-systems /v1/design-systems/{id}- DEL
/v1/design-systems/{id} - post
/v1/design-systems/{id}/default
List design systems
/v1/design-systemsResponses
200
designSystemsidnamebuiltInisDefaultsourcevariableCountcomponentCountupdatedAt
defaultId
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/design-systems" \
-H "Authorization: Bearer $NEXUS_API_KEY"Save design system
post
/v1/design-systemsParameters
Idempotency-Key
Request body · application/json
namecssfilespathtext
notescomponentssourcemakeDefault
Responses
200
designSystemidnamebuiltInisDefaultsourcevariableCountcomponentCountupdatedAt
createdread
201
designSystemidnamebuiltInisDefaultsourcevariableCountcomponentCountupdatedAt
createdread
429
errormessagetypecodeparamnexusminimum
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request_error | A field is missing or not valid; the message names it |
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running |
| 409 | idempotency_interrupted | The first request with this Idempotency-Key was cut off and may have run in part |
| 422 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 429 | Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap). | |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/design-systems" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Platform"
}'Get design system
/v1/design-systems/{id}Parameters
id
Responses
200
idnamebuiltInisDefaultsourcevariableCountcomponentCountupdatedAtcssvariablesnamevalueselectorkind
notescomponents
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl "$NEXUS_URL/v1/design-systems/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY"Delete design system
DEL
/v1/design-systems/{id}Parameters
idIdempotency-Key
Responses
200
iddeleteddefaultId
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running |
| 409 | idempotency_interrupted | The first request with this Idempotency-Key was cut off and may have run in part |
| 422 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X DELETE "$NEXUS_URL/v1/design-systems/<id>" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Set default design system
post
/v1/design-systems/{id}/defaultParameters
idIdempotency-Key
Responses
200
idnamebuiltInisDefaultsourcevariableCountcomponentCountupdatedAt
Errors
| Status | Code | When |
|---|---|---|
| 401 | authentication_error | No key, or a key Gateway does not accept |
| 403 | role_required | Your role does not have this permission |
| 404 | not_found | Nothing matches the path in your organization |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running |
| 409 | idempotency_interrupted | The first request with this Idempotency-Key was cut off and may have run in part |
| 422 | idempotency_key_reused | The Idempotency-Key was used with a different request |
| 429 | rate_limit_error | Too many requests from this key in a minute |
Example
curl -X POST "$NEXUS_URL/v1/design-systems/<id>/default" \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"