Path parameters
-
The identifier for the runner
Query parameters
-
bless boolean
Assigns the runner to the roles.
Responses
-
The roles for the {runner_id} specified runner are assigned.
-
There was an error while assigning the roles for the {runner_id} specified runner. Try your request again. (code:
runners.runner_set_roles_failed
) -
Unable to find the {runner_id} specified runner. Edit your request, then try again. (code:
runners.runner_not_found
)
PUT
/platform/infrastructure/runners/{runner_id}/roles
curl \
-X PUT https://{{hostname}}/api/v1/platform/infrastructure/runners/{runner_id}/roles \
-d '{"roles":[{"role_name":"string"}]}'
Request examples
{
"roles": [
{
"role_name": "string"
}
]
}
Response examples (200)
{
"roles": [
{
"role_name": "string"
}
]
}
Response examples (400)
# Headers
x-cloud-error-codes: runners.runner_set_roles_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: runners.runner_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}