Skip to content

Create or replace a workspace industry-profile configuration (OWNER only)

PUT
/industry-profiles/current/{profileKey}
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.

profileKey
required
string
X-Invogi-Organization
string format: uuid

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.

Media typeapplication/json
object
status
required
string
Allowed values: SHADOW ACTIVE RETIRED
configuration
required
object
enabledCapabilities
required
Array<string>
<= 20 items
answers
required
object
key
additional properties
boolean
terminology
required
object
key
additional properties
string
<= 80 characters

Profile saved, or confirmed unchanged

Media typeapplication/json
object
id
string format: uuid
profileKey
required
string
profileVersion
required
string
status
required
string
Allowed values: SHADOW ACTIVE RETIRED
configuration
required
object
enabledCapabilities
required
Array<string>
<= 20 items
answers
required
object
key
additional properties
boolean
terminology
required
object
key
additional properties
string
<= 80 characters
configurationVersion
required
integer
>= 1
activatedAt
required
string | null format: date-time
updatedAt
string format: date-time
unchanged

Present and true when an identical PUT created no revision.

boolean

Example

{
"status": "SHADOW"
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}