Delete Fact-Organization Mapping API
This API deletes the Fact mappings for Organization(s) that were modified for the specified System Fact.
Endpoint
Method: DELETE
URL: https://<base-api-url>/uzng-conversation-facts-backend/cf/v2/fact-org-mapping/<fact-id>
curl --location --request DELETE 'https://<base-api-url>/uzng-conversation-facts-backend/cf/v2/fact-org-mapping/<fact-id>?orgIds=<list-of-org-ids-to-filter>' \ --header 'Authorization: Bearer <token>'
Header Parameter
Authorization - Bearer <Token>
Note
To obtain an authorization token, click here.
Path Parameter
Parameter Name | Data type | Description | Required/ Optional |
|---|---|---|---|
FactId | String | The ID of the System Fact. | Required |
Query Parameter
Parameter Name | Data type | Description | Required/ Optional |
|---|---|---|---|
orgIds | String | List of Organization IDs with customized System Facts that need to be deleted. | Required |
Sample Response
{ "success": true,
"result": "Fact Org Mapping deleted successfully for factId: fact_123"
}
Response and Error Codes
Code | Condition | Description |
|---|---|---|
200 | OK | Fact org mappings deleted successfully. |
400 | Bad request | The values provided in the request parameters are invalid. |
401 | Unauthorized | A valid bearer token is required for authorization, or the token doesn’t have the required permission. |
404 | Not Found | Provided fact ID not found. |
500 | Internal Server Error | An unexpected issue occurred on the server side. Retry after some time. |