curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.computer.stateset.app/api/v1/jobs/multi-tag' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"job_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"tags": [
"priority"
],
"mode": "merge"
}'
{
"tagged": 1,
"skipped": 1,
"results": [
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tagged": true,
"tags": [
"priority"
],
"error": "string"
}
]
}
Multi Tag Jobs V1
Apply tag updates to up to 50 jobs in one transaction. Two modes — merge adds the new tags to whatever’s there; replace overwrites the entire tag set…
POST
/
api
/
v1
/
jobs
/
multi-tag
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.computer.stateset.app/api/v1/jobs/multi-tag' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"job_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"tags": [
"priority"
],
"mode": "merge"
}'
{
"tagged": 1,
"skipped": 1,
"results": [
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tagged": true,
"tags": [
"priority"
],
"error": "string"
}
]
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
merge adds the new tags to whatever’s there; replace
overwrites the entire tag set. Per-row outcomes: cross-tenant /
unknown ids surface as failures without aborting the batch. Single
commit at the end so a partial failure leaves the DB consistent.
Request body
MultiTagRequest
string (uuid)[]
required
List of job UUIDs to tag (1..50). Minimum items:
1. Maximum items: 50.string[]
required
Tag values to apply. Same per-tag rules as
TriggerRequest.tags. Pass an empty array with mode=replace to clear tags entirely. Maximum items: 20.string
merge (default) adds the supplied tags to whatever’s already on each job, deduplicating. replace overwrites — the supplied tags become the complete set, and any existing tags not in the request are removed. Allowed values: 'replace', 'merge'. Default: 'merge'.Response
MultiTagResponse
integer
required
integer
required
MultiTagItemResult[]
required
Status codes
| Code | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.computer.stateset.app/api/v1/jobs/multi-tag' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"job_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"tags": [
"priority"
],
"mode": "merge"
}'
{
"tagged": 1,
"skipped": 1,
"results": [
{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tagged": true,
"tags": [
"priority"
],
"error": "string"
}
]
}
Last modified on September 21, 2026