Create or replace a workspace industry-profile configuration (OWNER only)
const url = 'https://api.invogi.com/v1/industry-profiles/current/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"SHADOW","configuration":{"enabledCapabilities":["example"],"answers":{"additionalProperty":true},"terminology":{"additionalProperty":"example"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.invogi.com/v1/industry-profiles/current/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "SHADOW", "configuration": { "enabledCapabilities": [ "example" ], "answers": { "additionalProperty": true }, "terminology": { "additionalProperty": "example" } } }'Stores only the validated workspace delta against the pinned built-in profile. SHADOW records a preview without affecting analysis manifests; ACTIVE is stamped onto new analysis runs; RETIRED stops future use while preserving historical evidence. Changing or retiring an ACTIVE property profile re-checks the invoices it is holding. Activating the property profile with property context enabled returns 409 until the workspace has a property. Repeating the same version, status, and configuration is a no-op and returns unchanged: true without creating another revision or audit event.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
Responses
Section titled “Responses”Profile saved, or confirmed unchanged
object
object
object
object
Present and true when an identical PUT created no revision.
Example
{ "status": "SHADOW"}Invalid request
Missing or invalid API key
API key lacks required scope/role