Create credit currency

Creates a credit currency for the organization.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Request

Body
namestringRequired>=1 character

Human-readable name shown for this credit currency.

keystringRequiredformat: "^[a-z0-9_-]+$">=1 character

Stable machine-readable key for this credit currency. Use lowercase letters, numbers, underscores, and hyphens. Keys are unique within an organization.

descriptionstring or nullOptional
Optional description for this credit currency.

Response

201
idstring
Unique identifier for this credit currency.
namestring

Human-readable name shown for this credit currency.

keystring

Stable machine-readable key for this credit currency. Keys are unique within an organization.

statusenum
Whether this credit currency is active or archived.
descriptionstring or null
Optional description for this credit currency.
archivedAtdatetime or null
When this credit currency was archived. Null means the currency is active.
createdAtdatetime
When this credit currency was created.
updatedAtdatetime
When this credit currency was last updated.

Errors

400
Bad Request Error
403
Forbidden Error
500
Internal Server Error