API Key Custom Role
Update API Key Custom Role
Endpoint to update an existing API Key Custom Role
put/api-key-custom-role/{id}
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScripthttps://skmtc.dev/oneuptime/apis/oneuptime-openapi-specification/docs/api-key-custom-role/:id/put.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
ID of the API Key Custom Role to update
Request body
Example request
{
"data": {}
}Response
Updated successfully
Example response
{
"data": {
"_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"createdAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"updatedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"deletedAt": {
"_type": "DateTime",
"value": "2023-10-01T12:00:00Z"
},
"project": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"projectId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"apiKey": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"apiKeyId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"customRole": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"customRoleId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"createdByUser": {
"_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"
},
"createdByUserId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.