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
status
enum<string>
required

Inactive service account will not be able to access the api

Available options:
active,
inactive
groups
string[]

The groups in which this service account belongs to

Example:
["engineering"]
name
string

The display name of this service account

Example:

"system-automation"

subject
string

Subject is the external identifier that maps the user from the identity provider. This field is immutable after creation

Example:

"bJ8xV3ASWGTi7L9Z6zvHKqxJlnZM5TxV1bRdc0706vW"

Response

200
application/json
OK
status
enum<string>
required

Inactive service account will not be able to access the api

Available options:
active,
inactive
groups
string[]

The groups in which this service account belongs to

Example:
["engineering"]
id
string

The unique identifier of this resource

Example:

"BF997324-5A27-4778-806A-41EE83598494"

name
string

The display name of this service account

Example:

"system-automation"

org_id
string

Organization ID

subject
string

Subject is the external identifier that maps the user from the identity provider. This field is immutable after creation

Example:

"bJ8xV3ASWGTi7L9Z6zvHKqxJlnZM5TxV1bRdc0706vW"