Bulk Operations
Bulk Replace Resource Instances
Creates or replaces Resource Instances. If a resource instance with key and resource already exists, it will be replaced.
put/v2/facts/{proj_id}/{env_id}/bulk/resource_instances
Request
- Base URLhttps://api.permit.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
proj_idstring required
Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
env_idstring required
Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").
Request body
Example request
{
"operations": [
{
"key": "react",
"resource": "repository",
"tenant": "default",
"attributes": {
"private": "false",
"owner": "facebook"
}
},
{
"key": "deployment",
"resource": "repository",
"tenant": "default",
"attributes": {
"private": "true",
"owner": "facebook"
}
}
]
}Response
Successful Response
Resource Instance Create Bulk Operation Result required
Changes
No recorded changes to this operation across all 25 revisions of this API.