Create new task for offers

HTTP method Endpoint
POST /v1/offers/{offer_ids}/tasks

Path parameters

Parameter Description
offer_id The unique id for the offer.

Note:The limit of bulk adjustment is 20 offers.

Request body parameters

Field Type Description Nullable
user_id integer Founder ID (manager ID). No
modify_status string Set task for status: offer active or paused.(Note: if status's offer is deleted, it is unable to set task) No
execute_time string execution time. Time format: yyyy-MM-dd HH:00:00 (punctual time) No

Response body parameters

Field Type Description
id integer
offer_id integer A string that uniquely identifies this offer.
user_id integer Founder ID (manager ID).
modify_status string Set status for task: active or paused
execute_time string Execution time.
create_time string Creation time.
update_time string update time.
complete_status integer Complete status:
0: uncompleted ;
1: completed

Example request

Request POST https://{networkname}.api.offerslook.com/v1/offers/3147,4321/tasks


Request POST http://{networkname}.api.offerslook.com/v1/offers/3147,4321/tasks



    {
      "modify_status": "active",
      "execute_time": "2017-05-12 10:00:00",
      "user_id": 1
    }

Example response


    {
      "code": 0,
      "message": "Success",
      "data": {
        "offer_task": [
          {
            "id": 169,
            "offer_id": 3147,
            "user_id": 1,
            "complete_status": 0,
            "create_time": "2016-11-29 10:39:07",
            "update_time": null,
            "execute_time": "2017-05-12 10:00:00",
            "modify_status": "active"
          },
          {
            "id": 170,
            "offer_id": 4321,
            "user_id": 1,
            "complete_status": 0,
            "create_time": "2016-11-29 10:39:07",
            "update_time": null,
            "execute_time": "2017-05-12 10:00:00",
            "modify_status": "active"
          }
        ]
      }
    }

results matching ""

    No results matching ""