client
Set a client's PSA in use and project mix
/v1/clients/{clientId}/icp-profileRecords the PSA a client company runs and how much of its work is project work, the ICP facts lead ranking scores on. Send psaInUse, projectMix or both; a field left out keeps its value, and unknown clears it. psaInUseOtherName names the product, only with psaInUse other. Each value records who set it (manual for a signed-in person, api for a key or connector) and when. These values are Scopable's own and are never written back to the PSA. The client must belong to the caller's tenant; an archived or removed client answers not_found. Sending the values the client already has, from the same source, changes nothing and answers changed: false.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| clientId | path | Yes | string | — |
| Idempotency-Key | header | Yes | string | Opaque idempotency key, at most 255 characters, scoped to (tenant, principal, operation). A missing key is validation_failed. |
Request body
- psaInUse: string — The PSA the company runs. Omit to keep the current value; unknown clears it.
- psaInUseOtherName: string — The product name, only with psaInUse other.
- projectMix: string — The company's project mix. Omit to keep the current value; unknown clears it.
Responses and errors
200
Set a client's PSA in use and project mix
- clientId (required): string
- icpProfile (required): object
- changed (required): boolean — False when the client already had exactly these values from the same source, so nothing was written.
202
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ApprovalRequiredError:
- allOf: ErrorEnvelope
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
404
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- NotFoundError:
- allOf: ErrorEnvelope
409
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ConflictError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request POST \
--url 'https://api.scopable.io/v1/clients/{clientId}/icp-profile' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY' \
--data '<JSON request body>'Replace $SCOPABLE_API_KEY with a key created in Settings, API; replace the request body placeholder with JSON matching the schema above.
Need help with the API? …