Update the settings for the task

HTTP method

Endpoint

PUT

/v1/offers/{offer_ids}/tasks

Path parameters

Parameter

Description

offer_id

The unique id for the offer.

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 PUT https://{networkname}.api.offerslook.com/v1/offers/3147,4321/tasks

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

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

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-06-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-06-12 10:00:00",
            "modify_status": "active"
          }
        ]
      }
    }

Last updated