Put Compliance Profile
Replace the profile. version must be the current version plus one.
HTTPBearerAuthorizationBearer <token>Bearer credential. API keys look like sqk_<geo>_<key_id>_<secret>: treat them as opaque and never put one in a browser. Older keys without the geo part stay valid until rotated. Find a geo's endpoints through GET /.well-known/sparq-discovery before sending a key.
audience_tenant_id*Audience Tenant IduuidSparq-Workspace?stringFor a person signed in to a console with several workspaces: the workspace this call is for, one of their memberships (listMyMemberships). Without it such a person gets workspace_required (400); a workspace they are not a member of is forbidden. It never grants anything, and other callers' credentials ignore it.
uuidIf-Match?stringThe ETag you last read. A different current version is precondition_failed (412). Optional in 0.5.0.
application/json- body
One audience tenant's compliance rules. Versioned and audited; defaults from the project.
kind?Kind"compliance_profile"schema_version?Schema Version"1"audience_tenant_id*Audience Tenant Iduuidversion*VersionIncreases by one on every change.
1 <= valuedata_regions*array<>Where prompts and outputs may be processed. ['any'] means unrestricted.
1 <= itemsallowed_providers?array<>|Narrower than the workspace list. Empty means the workspace's.
allowed_model_classes?array<>|nullprovider_retention?ProviderRetention"standard""zero_retention_required""standard"max_classification_to_external?DataClassificationHighest data class that may be sent to a model Sparq does not host itself.
"internal""public""internal""confidential""restricted"features_locked?Features forced off (false) or on (true) for this client.
trace_content_policy?TraceContentPolicyHighest level of prompt and response content allowed in trace destinations.
"off""off""redacted""full"retention_days?Retention Days1 <= value <= 3650180approval_strictness?ApprovalStrictness"standard""standard""strict"ai_use_restrictions?array<>Contract clauses enforced as policy rules, in plain English.
Successful Response
application/json- response
One audience tenant's compliance rules. Versioned and audited; defaults from the project.
kind?Kind"compliance_profile"schema_version?Schema Version"1"audience_tenant_id*Audience Tenant Iduuidversion*VersionIncreases by one on every change.
1 <= valuedata_regions*array<>Where prompts and outputs may be processed. ['any'] means unrestricted.
1 <= itemsallowed_providers?array<>|Narrower than the workspace list. Empty means the workspace's.
allowed_model_classes?array<>|nullprovider_retention?ProviderRetention"standard""zero_retention_required""standard"max_classification_to_external?DataClassificationHighest data class that may be sent to a model Sparq does not host itself.
"internal""public""internal""confidential""restricted"features_locked?Features forced off (false) or on (true) for this client.
trace_content_policy?TraceContentPolicyHighest level of prompt and response content allowed in trace destinations.
"off""off""redacted""full"retention_days?Retention Days1 <= value <= 3650180approval_strictness?ApprovalStrictness"standard""standard""strict"ai_use_restrictions?array<>Contract clauses enforced as policy rules, in plain English.
curl -X PUT 'http://dev-sparq.centralindia.cloudapp.azure.com:8000/v1/admin/audience-tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance-profile' \ -H 'Content-Type: application/json' \ -d '{ "audience_tenant_id": "0287c3f7-886a-49f4-a73e-03577e798c26", "version": 1, "data_regions": [ "eu" ]}'{ "kind": "compliance_profile", "schema_version": "1", "audience_tenant_id": "0287c3f7-886a-49f4-a73e-03577e798c26", "version": 1, "data_regions": [ "eu" ], "allowed_providers": [ "string" ], "allowed_model_classes": [ "fast" ], "provider_retention": "zero_retention_required", "max_classification_to_external": "public", "features_locked": {}, "trace_content_policy": "off", "retention_days": 180, "approval_strictness": "standard", "ai_use_restrictions": [ "string" ]}Put Client Pack PUT
> **Not available yet.** This operation is part of the published contract and answers `501 not_implemented` until it is built. The request and response shapes below are final for this contract version.
Create Credential POST
Create a credential. A generated secret is returned once, in this response only. A project credential lives in its project's workspace; one without a project lives in the caller's own workspace.