Modify a Sim API

Property Description
Title Modify a sim
Description This is used to change the offer of a sim. The sim status must be "Productive".
URL https://ws.borderlessm2m.com/UpdateSim/Modify/{iccid}
Method PUT
Authentication Basic Auth
Body The following fields are accepted by the API:
Category Fields Description
Mandatory offer Offer to be assigned to the sim

Example:
{
	"offer":"BHM2M Standard Pooled"
}
							
Return Message Example:
{
    "message": "PENDING",
    "errors": null
}
							
Errors
Error Description Example
Wrong username or password
{
    "code": 500,
    "message": "There was an error processing your request. It has been logged (ID xxxxxxxxxxxxxxxx)."
}
										
Wrong iccid
{
    "message": "Bad Request",
    "errors": [
        "Could not find : {iccid}"
    ]
}
										
Sim Status Error
{
    "message": "Modify Sim Error",
    "errors": [
        "cannot modify a sim that is not active"
    ]
}
										
Wrong offer
{
    "message": "Bad Request",
    "errors": [
        "Offer {offer} unknown to user"
    ]
}
										
Empty offer
{
    "message": "Validation Failed",
    "errors": [
        "offer:may not be empty"
    ]
}