PUT/v1/devices/{device-id}/detailsSet a device location and remarks

Sets the location and remarks of a device.
headerAuthorizationAuthentication token (bearer token or API key).
{
"location" : String,
"remarks" : String
}

Response

status200All ok
status401Invalid authentication token
status403Insufficient rights
status404Device not found
{}

Example: Set device details as an Account

PUT/v1/devices/85/details

headerAuthorizationBearer cc34c526-167a-41f3-b117-815b45d590fd
{
"location": "Rotterdam",
"remarks": "You never Bold alone"
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{}

Example: Fail to set a business device name as an Account

PUT/v1/devices/91/details

headerAuthorizationBearer a80659db-53a4-4003-93dd-2c99da639ce2
{
"location": "Rotterdam",
"remarks": "You never Bold alone"
}

Response

status403
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{
"message": "The request was a legal request, but the server is refusing to respond to it.",
"errorMessage": "The request was a legal request, but the server is refusing to respond to it."
}