Skip to Content

Update User

PATCH/inventory/{iccid}/userInventory & Account ManagementOpenAPI

Update the user for a SIM.

Auth Scope
urn:grt:gemm
Content-Type
application/json
Base URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1

Uses and Requirements

Use the UpdateUser API to update the user field for a SIM. This API is synchronous: it does not send a callback.

Info

Note (October 2026): the device user is now optional elsewhere in GEMM — on the Activation and Port In APIs (deviceUser) and when edited from the Inventory Quick View, Detail View or Edit ECI Fields dialog. This API is unchanged: user is still required and must be 1–100 characters; an empty value is rejected. It cannot be used to clear a user; clear it from the dashboard instead.

HTTP Status Codes

StatusWhen
200The user was updated and a transactionID was returned. This API is synchronous: the change is applied before the response and no callback is sent.
400Validation failed: the ICCID in the path is not 19-20 digits (an F is allowed as the 20th character), or user is empty or longer than 100 characters; no SIM exists with that ICCID; the SIM is deactivated; the macnum header is missing or not an 8-digit number; or the request body is missing or is not valid JSON.
401The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header.
403You do not have access to the account the SIM belongs to, that account does not belong to the hierarchy of the macnum header, or your credentials are not enabled for API access.
429Too many requests were sent in a short period. Wait briefly and retry.
500An unexpected server error occurred.
503The system is under scheduled maintenance. Retry after the maintenance window.
504A dependent service did not respond in time. Retry the request.

Headers

HeaderValue
AuthorizationBearer access-token
Content-Typeapplication/json
macnumTop Level Account Number associated with your API credentials.

Path Parameters

ParameterTypeRequiredDescription
iccidstringYesICCID of the SIM whose user you want to update. 19-20 digits; an F is allowed as the 20th character. An ICCID that is not found returns 400 ("Invalid input. Connection {iccid} not found."), not 404, and a deactivated SIM returns 400 ("Operation not allowed. Connection '{iccid}' is deactivated.").

Request Body Parameters

ParameterTypeRequiredDescription
userstringYesLimited to 100 characters.

Request Examples

Responses

Success Response (200 OK)

Response Fields

ParameterTypeDescription
transactionIDstringA unique identifier (GUID) for the request.

Failure Responses

Error Message

Error Response Fields

ParameterTypeDescription
resultobjectResult status object.
statusstringResult status: success or failure.
errorsobjectList of errors.
errorCodestringError code.
errorMessagestringError message.

Code Examples

Last updated on