Import Policy
Changed onImport a single policy from JSON.
IDs from the import are ignored; a new ID will be generated. Requires admin role.
Docs: Guide | API Reference
Request
- Base URLhttps://api.grayswan.ai
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
- breaking
the
response's property type changed fromarraytostringfor status - info
added the new optional request property
/ - 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