curl --request PUT \
--url https://ndi-api.nace.ai/v1/tenants/{external_ref} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"disabled": true,
"display_name": "<string>",
"limits": {
"max_concurrent_jobs": 2,
"rpm": 2
},
"workspace_storage_limit_bytes": 4611686018427388000
}
'{
"created_at": "2023-11-07T05:31:56Z",
"data_retention": "short",
"disabled": true,
"display_name": "<string>",
"external_ref": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"limits": {
"max_concurrent_jobs": 123,
"rpm": 123
},
"zero_retention_result_hold_seconds": 0
}{
"created_at": "2023-11-07T05:31:56Z",
"data_retention": "short",
"disabled": true,
"display_name": "<string>",
"external_ref": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"limits": {
"max_concurrent_jobs": 123,
"rpm": 123
},
"zero_retention_result_hold_seconds": 0
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}put_tenant
Create the tenant, or update the one with this external_ref.
Answers 201 when it was created and 200 when it already existed, so it is safe to repeat. Limits above the partner’s own are lowered to them. Cost class: write.
curl --request PUT \
--url https://ndi-api.nace.ai/v1/tenants/{external_ref} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"disabled": true,
"display_name": "<string>",
"limits": {
"max_concurrent_jobs": 2,
"rpm": 2
},
"workspace_storage_limit_bytes": 4611686018427388000
}
'{
"created_at": "2023-11-07T05:31:56Z",
"data_retention": "short",
"disabled": true,
"display_name": "<string>",
"external_ref": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"limits": {
"max_concurrent_jobs": 123,
"rpm": 123
},
"zero_retention_result_hold_seconds": 0
}{
"created_at": "2023-11-07T05:31:56Z",
"data_retention": "short",
"disabled": true,
"display_name": "<string>",
"external_ref": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"limits": {
"max_concurrent_jobs": 123,
"rpm": 123
},
"zero_retention_result_hold_seconds": 0
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}{
"error": {
"code": "invalid_request",
"detail": null,
"message": "Request body has extra fields that this operation does not accept.",
"request_id": "req-01j9k2n3p4q5r6s7t8v9",
"retryable": false
}
}Path Parameters
Body
Create a tenant, or update the one with this external_ref. Omitted fields stay as they are.
Opt a zero_retention tenant in to keeping each result readable for 24 hours (86400) after its job finishes, or out (0). It starts at 0: no held copy and the standard short delivery window. It has effect only while the tenant is zero_retention and the deployment enables result holds, and a job that delivers to customer storage is never held. A job keeps the value in force when it was accepted. Omit it to leave it unchanged.
0, 86400 Response
Successful Response
One of the partner's child tenants. Send X-NDI-Tenant: ext:<external_ref> to act for it.