Get Policy By Id
Changed onGet a policy by ID.
Docs: Guide | API Reference
Raises: ResourceNotFoundError: If the policy does not exist.
get/policies/{policy_id}
Request
- Base URLhttps://api.grayswan.ai
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
policy_idstring required
Response
Successful Response
Changes
- breaking
the
response's property type changed fromarraytostringfor status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
added the required property
to the response with the status
- breaking