Skip to main content
PUT
/
serviceaccounts
/
{subject}
Update Service Account
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

Body

application/json
status
enum<string>
required
Available options:
active,
inactive
subject
string
required
Example:
groups
string[]
Example:
name
string
Example:

Response

status
enum<string>
required
Available options:
active,
inactive
subject
string
required
Example:
groups
string[]
Example:
id
string<uuid>
Example:
name
string
Example:
org_id
string<uuid>