Edit object

Note that some of the features that can be controlled via the API are related to the permissions assigned to your access token (seller, customer etc. with subcategories). Please contact Skyresponse support if any Forbidden responses occur.

Edit object/user in Skyresponse Admin

To edit a specific object, you must know its id, see the fetch objects list tutorial.

The model fields were described here. You can however only update some of the fields, not all of them. To do this, use the PATCH http method instead of PUT.

The signature of the PATCH HTTP request is shown below. id is the user identifier for the user you want to update.

PATCH /api/users/{id} HTTP/1.1
Host: https://admin.skyresponse.com
Authorization: Bearer tkgY9yiM...plBp

{
  "Name": "Demo User Changed"
}

Not all fields are described. You can patch all that you want to change.

If you don’t know how to get the Authorization header, please proceed to the Authentication tutorial.

If your request have the correct values, you will recieve a full model with updated fields:

{
  "Name": "Demo User Changed",
  "Email": "demo.user@demo.eu",
  "Pin": "12345",
  "Password": "",
  "IMEI": "1111111111",
  "SimId": "111111111111",
  "SimIdExtra": "111111111111111",
  "TransmitterCode": "",
  "ProductId": 0,
  "RegistrationTime": "2014-09-16T16:57:23Z",
  "Active": true,
  "Deleted": false,
  "SmsInvalid": false,
  "ExchangeTelephoneNumber": "",
  "ClientVersion": "3.1-alpha3:eu.skygd.skygdandro",
  "Manufacturer": "",
  "Model": "",
  "DateOfBirth": null,
  "Gender": 0,
  "Title": "",
  "FirstLanguage": "",
  "SecondLanguage": "",
  "ThirdLanguage": "",
  "ThreatPin": "",
  "CitizenShip": "",
  "NextServiceId": 523,
  "NationalIdNumber": "",
  "Profession": "",
  "EthnicGroup": 0,
  "Height": null,
  "Weight": null,
  "HairColour": 0
}

And a lot more useful data!


cURL example:

Example of edit user:

curl -X PATCH -H "Content-Type: application/json" 'https://admin.skyresponse.com/api/users/1' -H "Authorization: Bearer PASTE_YOUR_TOKEN_HERE" -d '{"Name": "Demo User Changed"}'

Full documentation:
Topics:

Edit object

Note that some of the features that can be controlled via the API are related to the permissions assigned to your access token (seller, customer etc. with subcategories). Please contact Skyresponse support if any Forbidden responses occur.

Edit object/user in Skyresponse Admin

To edit a specific object, you must know its id, see the fetch objects list tutorial.

The model fields were described here. You can however only update some of the fields, not all of them. To do this, use the PATCH http method instead of PUT.

The signature of the PATCH HTTP request is shown below. id is the user identifier for the user you want to update.

PATCH /api/users/{id} HTTP/1.1
Host: https://admin.skyresponse.com
Authorization: Bearer tkgY9yiM...plBp

{
  "Name": "Demo User Changed"
}

Not all fields are described. You can patch all that you want to change.

If you don’t know how to get the Authorization header, please proceed to the Authentication tutorial.

If your request have the correct values, you will recieve a full model with updated fields:

{
  "Name": "Demo User Changed",
  "Email": "demo.user@demo.eu",
  "Pin": "12345",
  "Password": "",
  "IMEI": "1111111111",
  "SimId": "111111111111",
  "SimIdExtra": "111111111111111",
  "TransmitterCode": "",
  "ProductId": 0,
  "RegistrationTime": "2014-09-16T16:57:23Z",
  "Active": true,
  "Deleted": false,
  "SmsInvalid": false,
  "ExchangeTelephoneNumber": "",
  "ClientVersion": "3.1-alpha3:eu.skygd.skygdandro",
  "Manufacturer": "",
  "Model": "",
  "DateOfBirth": null,
  "Gender": 0,
  "Title": "",
  "FirstLanguage": "",
  "SecondLanguage": "",
  "ThirdLanguage": "",
  "ThreatPin": "",
  "CitizenShip": "",
  "NextServiceId": 523,
  "NationalIdNumber": "",
  "Profession": "",
  "EthnicGroup": 0,
  "Height": null,
  "Weight": null,
  "HairColour": 0
}

And a lot more useful data!


cURL example:

Example of edit user:

curl -X PATCH -H "Content-Type: application/json" 'https://admin.skyresponse.com/api/users/1' -H "Authorization: Bearer PASTE_YOUR_TOKEN_HERE" -d '{"Name": "Demo User Changed"}'

Full documentation: