Add the settings for the category

HTTP method Endpoint
PUT /v1/offers/{offer_id}/categories/{category_ids}

Path parameters

Parameter Description
offer_id The unique id for the offer.
category_id The unique id for the category.

Response body parameters

Field Type Description
id integer The unique id for the category.
offer_id integer A string that uniquely identifies this offer.
name string Type
create_time string Create time for classification.

Example request

Request PUT https://{networkname}.api.offerslook.com/v1/offers/3147/categories/4,5,7


Request PUT http://{networkname}.api.offerslook.com/v1/offers/3147/categories/4,5,7


Example response


    {
      "code": 0,
      "message": "Success",
      "data": {
        "offer_category": [
          {
            "id": 4,
            "name": "test",
            "create_time": 1467252893,
            "offer_id": 3147
          },
          {
            "id": 5,
            "name": "Music and Audio",
            "create_time": 1467258706,
            "offer_id": 3147
          },
          {
            "id": 7,
            "name": "cc",
            "create_time": 1467258706,
            "offer_id": 3147
          }
        ]
      }
    }

results matching ""

    No results matching ""