Update a service account
You can update the name, the access token lifetime and the expiration date of a service account.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- iam.serviceAccount.update
- Console
- API
- Terraform
- Log in to the Numspot console
- From the left-hand side menu, click IAM → Service accounts

- You are redirected to the list of Service accounts

In the Service accounts table, you can search for a specific service account using the "Search" field.
- Click the Actions drop-down menu of the service account you want to update.

You can:
- Create a service account from this profile
- which lets you create a service account with the same roles and permissions as the initial service account
- Manage spaces
- manage the spaces assigned to this service account
- Manage roles
- manage the roles assigned to this service account
- Manage permissions
- manage the permissions assigned to this service account
Click the identifier of a specific service account to go to the details page.

Here you can update the service account name, the access token lifetime and the expiration date.
This endpoint only lets you update the naming information of the entity, the access token lifetime and the expiration date of the service account. You must use the access management API to update the roles or permissions.
Update a service account in an organization
Example with curl
curl 'https://api.{region}.numspot.com/iam/organisations/{organisationId}/serviceAccounts/{serviceAccountId}' \
--request PUT \
--header 'Content-Type: application/json' \
--data '{
"name": "",
"tokenDuration": "PT24H",
"expirationDate": "2025-12-31"
}'
See the page on using the API for the implementation.
Update a service account in a space
Example with curl
curl 'https://api.{region}.numspot.com/iam/spaces/{spaceId}/serviceAccounts/{serviceAccountId}' \
--request PUT \
--header 'Content-Type: application/json' \
--data '{
"name": "",
"tokenDuration": "PT24H",
"expirationDate": "2025-12-31"
}'
See the page on using the API for the implementation.
The Terraform documentation is available on the Numspot registry ↗.