PUT
/
v1
/
{entityCollection}
/
{entityId}
/
acl
/
{subjectType}
/
{subjectEntityId}
curl --request PUT \
  --url https://wmc.wiremockapi.cloud/v1/{entityCollection}/{entityId}/acl/{subjectType}/{subjectEntityId} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "grant": {
    "role": "mock_api_editor"
  }
}'
{
  "grant": {
    "role": "mock_api_editor"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

entityCollection
enum<string>
required

Specifies the plural of the entity type for which ACL candidates should be retrieved.

Available options:
mock-apis,
data-sources
entityId
string
required

The ID of the entity (mock API, data source etc.)

Required string length: 5 - 10
subjectType
enum<string>
required

The type of subject in the context of an ACL.

Available options:
user,
team,
organisation
subjectEntityId
string
required

The ID of a subject entity (user, team, organisation)

Required string length: 5 - 10

Body

application/json
grant
object
required

Response

200 - application/json
Success
grant
object
required