Batch processed. Check each item for its outcome.
|
|
external_id
String
Echoed on every item, so results do not have to be matched by position.
Ex: crm-8842
|
status
String
Enum: `created`, `replayed`, `updated`, `failed`
`created` — the workspace was provisioned by this request.
`replayed` — this external_id was already provisioned; nothing was created.
`updated` — the billing data was corrected and a new attempt was queued.
`failed` — the item was rejected; see `error`.
|
workspace_id
String
= 22 characters
^[0-9a-f]{22}$
The unique identifier of the resource
Ex: abcd1234efgh5678ijkl
|
user_id
String
= 22 characters
^[0-9a-f]{22}$
The unique identifier of the resource
Ex: abcd1234efgh5678ijkl
|
setup_status
String
Enum: `pending_setup`, `all_set`
Setup runs in the background. The workspace is usable once it reaches `all_set`.
|
billing_status
String
Enum: `pending`, `synced`, `failed`, `skipped`
Whether the Billing records have been created yet. `synced` covers the customer and the
subscription together — they are created in one call. `skipped` is terminal and means
the request did not set `install_requesting_app`, so there was no Billing work to do.
`failed` means Billing rejected the data; send it again through `PATCH /api/workspaces`.
|
app_installed
Boolean
Whether the calling application has been installed into the workspace. Only ever true
when the request set `install_requesting_app`, and it becomes true asynchronously.
|
|
|
code
String
Enum: `forbidden`, `invalid_request`, `invalid_batch`, `empty_batch`, `too_many_items`, `missing_external_id`, `missing_workspace_name`, `missing_document`, `missing_billing_email`, `validation_failed`, `service_user_missing`, `internal_error`, `provisioning_not_found`, `billing_already_synced`, `activation_in_progress`, `billing_not_applicable`, `workspace_discarded`
A stable, machine-readable code. Branch on this — `message` is localized and its wording
is not part of the contract.
Ex: missing_document
|
message
String
Human-readable description, localized by the Accept-Language header.
Ex: billing.document is required
|
details
Object
Present for validation_failed. Maps attribute names to error identifiers.
Ex: {"name"=>[{"error"=>"blank"}]}
|
|
|
|
|
|