Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15391,7 +15391,7 @@
"content": {
"application/json": {
"example": {
"id": "0d38471d99714c0f967a56d80dfe7922",
"id": "cb8eb90716234edf9313235415fbd7dd",
"title": "The request was invalid",
"error_code": "PAGINATION_SIZE_OVERREACHED",
"message": "We are sorry for the inconvenience, Max number of results for this API is 10000. To obtain additional results readjust the query's time window, or apply additional filters.. Please check the request and try again.\nIf the issue keeps happening, contact our support on Slack for further guidance."
Expand Down Expand Up @@ -23551,15 +23551,15 @@
],
"title": "DerivedRoleBlockRead",
"example": {
"id": "a86ca432-95e7-437b-85a6-530fd5ce630a",
"id": "b4ecaed1-90b4-43aa-bba2-750fc47d9446",
"users_with_role": [
{
"role": "Admin",
"on_resource": "organization",
"linked_by_relation": "owner",
"role_id": "3064417d-ff34-42a1-8cda-3bacdfad8ada",
"resource_id": "1463ebbd-93a6-41f7-9301-d1f440b46aa4",
"relation_id": "fb8e98b7-f07b-41d2-9781-ac7e79dcfccf"
"role_id": "2d284eba-c580-4ca6-94e8-8f3bebcffcd2",
"resource_id": "64c80143-4ea5-4a87-9d14-84bb2eedee51",
"relation_id": "4e39ae60-68d2-4c5d-81a4-64a0496842b5"
}
]
}
Expand Down Expand Up @@ -23715,9 +23715,9 @@
"role": "Admin",
"on_resource": "organization",
"linked_by_relation": "owner",
"role_id": "3064417d-ff34-42a1-8cda-3bacdfad8ada",
"resource_id": "1463ebbd-93a6-41f7-9301-d1f440b46aa4",
"relation_id": "fb8e98b7-f07b-41d2-9781-ac7e79dcfccf"
"role_id": "2d284eba-c580-4ca6-94e8-8f3bebcffcd2",
"resource_id": "64c80143-4ea5-4a87-9d14-84bb2eedee51",
"relation_id": "4e39ae60-68d2-4c5d-81a4-64a0496842b5"
}
},
"DetailedAuditLogModel": {
Expand Down Expand Up @@ -29979,7 +29979,7 @@
],
"title": "RelationBlockRead",
"example": {
"resource_id": "b08c81cb-a758-4993-a224-879cee7ecb9c",
"resource_id": "f0abbb78-dcfd-4dcb-abfe-c926ec43d1b6",
"relation_name": "parent",
"resource": "parent-resource"
}
Expand Down Expand Up @@ -32074,15 +32074,15 @@
],
"resource": "repo",
"granted_to": {
"id": "a86ca432-95e7-437b-85a6-530fd5ce630a",
"id": "b4ecaed1-90b4-43aa-bba2-750fc47d9446",
"users_with_role": [
{
"role": "Admin",
"on_resource": "organization",
"linked_by_relation": "owner",
"role_id": "3064417d-ff34-42a1-8cda-3bacdfad8ada",
"resource_id": "1463ebbd-93a6-41f7-9301-d1f440b46aa4",
"relation_id": "fb8e98b7-f07b-41d2-9781-ac7e79dcfccf"
"role_id": "2d284eba-c580-4ca6-94e8-8f3bebcffcd2",
"resource_id": "64c80143-4ea5-4a87-9d14-84bb2eedee51",
"relation_id": "4e39ae60-68d2-4c5d-81a4-64a0496842b5"
}
]
},
Expand All @@ -32096,7 +32096,7 @@
},
"relations": {
"parent": {
"resource_id": "b08c81cb-a758-4993-a224-879cee7ecb9c",
"resource_id": "f0abbb78-dcfd-4dcb-abfe-c926ec43d1b6",
"relation_name": "parent",
"resource": "parent-resource"
}
Expand Down Expand Up @@ -32440,15 +32440,15 @@
],
"resource": "repo",
"granted_to": {
"id": "a86ca432-95e7-437b-85a6-530fd5ce630a",
"id": "b4ecaed1-90b4-43aa-bba2-750fc47d9446",
"users_with_role": [
{
"role": "Admin",
"on_resource": "organization",
"linked_by_relation": "owner",
"role_id": "3064417d-ff34-42a1-8cda-3bacdfad8ada",
"resource_id": "1463ebbd-93a6-41f7-9301-d1f440b46aa4",
"relation_id": "fb8e98b7-f07b-41d2-9781-ac7e79dcfccf"
"role_id": "2d284eba-c580-4ca6-94e8-8f3bebcffcd2",
"resource_id": "64c80143-4ea5-4a87-9d14-84bb2eedee51",
"relation_id": "4e39ae60-68d2-4c5d-81a4-64a0496842b5"
}
]
},
Expand Down
85 changes: 85 additions & 0 deletions pdp-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,53 @@
}
}
}
},
"delete": {
"tags": [
"Local Facts API"
],
"summary": "Unassign User Role",
"operationId": "unassign_user_role_facts_users__user_id__roles_delete",
"parameters": [
{
"required": true,
"schema": {
"type": "string",
"title": "User Id"
},
"name": "user_id",
"in": "path"
},
{
"required": true,
"schema": {
"type": "string",
"title": "Authorization"
},
"name": "authorization",
"in": "header"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/facts/role_assignments": {
Expand Down Expand Up @@ -1349,6 +1396,44 @@
}
}
}
},
"delete": {
"tags": [
"Local Facts API"
],
"summary": "Delete Role Assignment",
"operationId": "delete_role_assignment_facts_role_assignments_delete",
"parameters": [
{
"required": true,
"schema": {
"type": "string",
"title": "Authorization"
},
"name": "authorization",
"in": "header"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/facts/resource_instances": {
Expand Down
Loading