SIM tags
These operations queue changes to tags assigned to SIMs. They use existing tag identifiers and do not create tag definitions. Use API authentication and confirm the intended tags and SIMs before submitting.
Obtain tag GUIDs from your configured tags. A SIM read response's tags collection contains assigned tags; the public API specification does not publish a general tag-definition listing or creation endpoint. Do not substitute a tag name for a GUID.
Add tags
POST /api/SimSubmission/AddTag
Adds the selected tags to each requested SIM. Each tag must be available to the authenticated user and applicable to every SIM in the request through its company, account or SIM-group permissions. All requested SIMs must be accessible and have an owning account.
Remove tags
POST /api/SimSubmission/RemoveTag
Removes the selected tag assignments from the requested SIMs. The tag definitions must be available to the authenticated user. All requested SIMs must be accessible and have an owning account.
Request body
Both operations accept the same JSON object:
| Field | Type | Description |
|---|---|---|
serialNumbers | string array | Required, non-empty list of SIM serial numbers. Supply unique values. |
tagIds | GUID array | Required, non-empty list of existing tag identifiers. |
curl --location 'https://api.cellhire.com/api/SimSubmission/AddTag' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"serialNumbers": ["01234567890"],
"tagIds": ["c5b8060b-7c7c-48a5-9da4-b239ac142a35"]
}'To remove the same assignments, send that body to POST /api/SimSubmission/RemoveTag.
Responses
200 OK returns the created submission's identifier:
{ "ticketNumber": "1beeb8dd-1825-4bcd-8a62-f941aacb8d15" }Follow submission status and recovery to verify the result for every SIM. A returned ticket does not confirm the tags have changed. The default submission names are Add Tag and Remove Tag; neither endpoint accepts a public name field.
| Status | Meaning |
|---|---|
400 | Empty/invalid lists, unavailable SIMs or tags, invalid SIM ownership, or tags outside the permitted scope. |
403 | The authenticated user is not permitted to execute the operation. |
500 | Submission creation failed or the command type is unavailable. |