Update my device
PATCH {{stripeUrl}}/admin/v1/MyDevices/{{DeviceId}}
This step requests to update a device.
Prerequisites for this step:
- Use the 'Obtain ME access_token' to obtain a valid access token.
- Use the Search for devices to get the device id
to pass
in the request to /admin/v1/MyDevices/{{deviceId}}
In the request, each patch operation object MUST have exactly one op
member, whose value indicates the operation to perform and MAY be one of add
, remove
, or replace
.
Request Body
{"Operations"=>[{"op"=>"replace", "path"=>"status", "value"=>"{{Attribute to be Replaced, such as INPROGRESS}}"}], "schemas"=>["urn:ietf:params:scim:api:messages:2.0:PatchOp"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Date | string | ||
Content-Type | string | ||
x-content-sha256 | string |
RESPONSES
status: OK
{"appVersion":"4.10","lastSyncTime":"2019-01-24T11:03:35.855Z","isAccRecEnabled":false,"idcsLastModifiedBy":{"type":"User","value":"c810ff4522eb437abac013291c1984d1","display":"Joe Bloggs","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"idcsCreatedBy":{"type":"User","display":"Joe Bloggs","value":"c810ff4522eb437abac013291c1984d1","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"id":"2b27b8c072d64b899d41c8470acea32a","deviceUUID":"D325783E-2A17-4183-AECD-48E082A9F80B","deviceType":"iPhone","meta":{"created":"2019-01-24T11:01:12.976Z","lastModified":"2019-01-30T10:57:02.534Z","resourceType":"MyDevice","location":"https://example.identitycloud.com/admin/v1/MyDevices/2b27b8c072d64b899d41c8470acea32a"},"phoneNumber":"null","basePublicKey":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A.......W2tzKgyu/bu4SyZJpNsh/BMtiUjFV0hjQvNFbw8u6wIDAQAB","status":"ENROLLED","displayName":"Joe's iPhone 7","platform":"IOS","lastValidatedTime":"2019-01-24T11:02:30Z","additionalAttributes":[{"key":"version","value":"11.2.2"}],"nonCompliances":[{"action":"ALLOW","value":"4.10","name":"minIosAppVersion"},{"action":"ALLOW","value":"false","name":"jailBrokenDevice"},{"action":"ALLOW","value":"11.2.2","name":"minIosVersion"}],"user":{"value":"c810ff4522eb437abac013291c1984d1","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"pushNotificationTarget":{"value":"f210be6e961f439ebd6fb330ebe3b72c","$ref":"https://example.identitycloud.com/admin/v1/PushNotificationTargets/f210be6e961f439ebd6fb330ebe3b72c"},"authenticationFactors":[{"publicKey":"MIIBIjANBgkqhkiG9w0BAQEFAAO......V8FoYxCxtc4RX7gJplDsjpkRW2tzKgyu/bu4SyZJpNsh/BMtiUjFV0hjQvNFbw8u6wIDAQAB","status":"INPROGRESS","type":"PUSH"},{"status":"ENROLLED","type":"TOTP"}],"schemas":["urn:ietf:params:scim:schemas:oracle:idcs:Device"]}