Validate Rules
POST
rules:validate
Validates if codeblocks exist in the provided rulesKey and can be parsed successfully
Resource Information
| Method and URI | POST https://developer.api.autodesk.com/industrialized-construction/informed-design/v1/rules:validate |
| Authentication Context | User context required |
| Required OAuth Scopes | data:read data:write data:create account:read |
| Data Format | JSON |
Request
Headers
| Authorization* string | Must be Bearer <token>, where <token> is a three-legged access token obtained via an Authorization Code flow or a Secure Service Account (SSA) flow.
The SSA flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context. |
| Content-Type* string | Must be application/json |
* Required
Request
Body Structure
| rules* string | A key that uniquely identifies the uploaded rules. |
* Required
Response
HTTP Status Code Summary
| 200 OK | Rules validation executed successfully. |
| 400 Bad Request | The server could not process your request. It is likely due to incorrect formatting or missing information. The response body may indicate what is wrong. Please review and resubmit your request. |
| 401 Unauthorized | The supplied authorization header was invalid or the token scope was not acceptable. Verify your authentication credentials and try again. |
| 403 Forbidden | The request was valid but lacked the necessary permissions. Verify your credentials and permissions before sending the request again. |
| 404 Not Found | The requested resource could not be found on the server. Review the request and try again. |
| 429 Too Many Requests | The server has received too many requests within the allowed time window. Please wait before retrying. |
| 500 Internal Server Error | An unexpected error occurred on the server. Please try again later. |
Response
Body Structure (200)
Expand all
| result enum:string | The validation result.
Possible values: SUCCESS, FAIL |
| error object | The error details. |
| title string | The title of the error. |
| detail string | A detailed description of the error. |
| type string | The type of the error. |
Example
Rules validation executed successfully.
Request
curl -v 'https://developer.api.autodesk.com/industrialized-construction/informed-design/v1/rules:validate' \
-X 'POST' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"rules": ""
}'
Response
{
"result": "SUCCESS",
"error": {
"title": "",
"detail": "",
"type": ""
}
}
Show More