PUT
/
serviceaccounts
/
{subject}
curl --request PUT \
  --url https://use.hoop.dev/api/serviceaccounts/{subject} \
  --header 'Content-Type: application/json' \
  --data '{
  "groups": [
    "engineering"
  ],
  "name": "system-automation",
  "status": "active",
  "subject": "bJ8xV3ASWGTi7L9Z6zvHKqxJlnZM5TxV1bRdc0706vW"
}'
{
  "groups": [
    "engineering"
  ],
  "id": "BF997324-5A27-4778-806A-41EE83598494",
  "name": "system-automation",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "active",
  "subject": "bJ8xV3ASWGTi7L9Z6zvHKqxJlnZM5TxV1bRdc0706vW"
}

Path Parameters

subject
string
required

The subject identifier of the service account

Body

application/json
The request body resource

The body is of type object.

Response

200
application/json
OK

The response is of type object.