curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/teams \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"team": {
"name": "Elite Team"
}
}'
{
"team": {
"id": "p9e4r",
"aclSubject": "dyv8j",
"aclObject": "626vg",
"name": "Elite Team",
"links": {
"organisation": "/v1/organisations/mgk7g",
"aclSubject": "/v1/acl/subjects/dyv8j",
"aclObject": "/v1/acl/objects/626vg",
"acl": "/v1/teams/p9e4r/acl{?subjectId}"
}
}
}
curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/teams \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"team": {
"name": "Elite Team"
}
}'
{
"team": {
"id": "p9e4r",
"aclSubject": "dyv8j",
"aclObject": "626vg",
"name": "Elite Team",
"links": {
"organisation": "/v1/organisations/mgk7g",
"aclSubject": "/v1/acl/subjects/dyv8j",
"aclObject": "/v1/acl/objects/626vg",
"acl": "/v1/teams/p9e4r/acl{?subjectId}"
}
}
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
201 response
The response is of type object
.