Update Hobbies
URL:
Method: POST
https://saasapi.igainapp.in/v1/hobbies.php/updatehobbies
Request Parameters
Parameter | Type | Position | # | Description |
---|---|---|---|---|
Authorization | string |
Header |
Required |
Authorization is the Enrypted Company API KEY |
membershipid | string |
Body |
Required |
Membership ID |
phoneno | string |
Body |
Required |
Phone number without country code |
hobbies_data | array |
Body |
Required |
Hobbies Data array to add new hobbies |
id | integer |
Body |
Required |
Hobbies id from the array |
hobbies | string |
Body |
Required |
Hobbies name from the array |
Sample Request Body
{ "membershipid": "20190000000", "phoneno": "1234567890", "hobbies_data":[{ "id":"5", "hobbies":"Music" }, { "id":"7", "hobbies":"Drama" }] }
Sample Request Response
{ "errorcode": 1001, "message": "Ok" }
Error Codes
Error Code | Description |
---|---|
3121 | Required field(s) is missing or empty |
3122 | Phone number is not valid |
2003 | Unable to locate membership id |
3118 | Invalid Hobbies Data |
1001 | OK |