Edit an affiliate

HTTP method End Point
POST /admin/affiliates/edit/:user_id

Request body parameters

curl -X POST -H 
"X-Api-Key: {key}"
 -H 
"Content-Type: application/json"
 -H 
"Cache-Control: no-cache"
 -H 
"Postman-Token: cc5d7610-80aa-8f1b-983d-fc5712fcfb53"
-d
'{
  "name": "testUser",
  "live": false
}'
"http://{{network}}/admin/affiliates/edit/:user_id"
Field Type Description Required
name string Name of the affiliate No
username string Username of the affiliate No
phone string Phone number of the affiliate No
country string Country of the affiliate No
live boolean Disable enable account No

Response body parameters

{
  "success": true,
  "data": {
    "user": {
      "org_id": "string",
      "name": "Awesome User",
      "username": "#Awesome_user",
      "email": "abc@example.com",
      "password": "deb750c4f124a9ab6581b4537bc2cd680a17cb70",
      "phone": "string",
      "country": "IN",
      "currency": "USD",
      "type": "publisher",
      "login": null,
      "_id": "string",
      "live": false,
      "created": "2016-10-25",
      "modified": "2016-11-08",
      "meta": {
        "afields": {
          "skype_id": "live:test",
          "screenshot": "image.png"
        }
      }
    },
    "message": "Affiliate Updated!!"
  }
}

results matching ""

    No results matching ""