Add Blessingedit

Add a Blessing for a runner to a role.

Requestedit

PUT /api/v1/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}

Path parametersedit

Name Type Required Description

blueprinter_role_id

string

Y

User-specified Blueprinter role ID.

runner_id

string

Y

Runner ID for a blessing associated with a role.

Query parametersedit

Name Type Required Description

version

integer

N

When specified, checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)

Request bodyedit

(Blessing) (required) The blessing to add.

Responsesedit

200

(RoleAggregate)

Blessing added successfully.

404

(BasicFailedReply)

The role can't be found. (code: roles.not_found)

Headers

x-cloud-error-codes (string; allowed values: [roles.not_found])
The error codes associated with the response
409

(BasicFailedReply)

Your request failed because the specified version does not match the persisted version. (code: roles.version_conflict)

Headers

x-cloud-error-codes (string; allowed values: [roles.version_conflict])
The error codes associated with the response

Request exampleedit

curl -XPUT https://{{hostname}}/api/v1/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id} \
-H "Authorization: ApiKey $ECE_API_KEY" \
-H 'Content-Type: application/json' \
-d '
{
   "value" : true
}
'