Update an offer pool

HTTP method

Endpoint

PUT

/v1/offer_pools/{pool_id}

Path parameters

Parameter

Description

pool_id

The unique id for the offer pool.

Request body parameters

Field

Type

Description

Nullable

offer_pool

name

string

Offer pool name.

No

status

string

The offer pool status.

note

string

The offer pool note.

pool_offer

offer_id

integer

Offer id.

Response body parameters

Field

Type

Description

offer_pool

id

integer

The unique id for the offer pool.

name

string

Offer pool name.

status

string

The offer pool status.

note

string

The offer pool note.

create_time

integer

Create time.

update_time

integer

Update time.

pool_offer

pool_id

integer

The unique id for the offer pool.

offer_id

integer

Offer id.

create_time

integer

Create time.

Example request

Request PUT https://{networkname}.api.offerslook.com/v1/offer_pools/8

Request PUT http://{networkname}.api.offerslook.com/v1/offer_pools/8

    {
      "offer_pool": {
        "name": "Test Demo",
        "status": "active",
        "note": "Update this offer pool !"
      },
      "pool_offer": {
        "offer_id": [
          17,
          18,
          19
        ]
      }
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "pool_offer": [
          {
            "pool_id": 8,
            "offer_id": 17,
            "create_time": 1468461607
          },
          {
            "pool_id": 8,
            "offer_id": 18,
            "create_time": 1468461607
          },
          {
            "pool_id": 8,
            "offer_id": 19,
            "create_time": 1468461607
          }
        ],
        "offer_pool": {
          "id": 8,
          "name": "Test Demo",
          "status": "active",
          "note": "Update this offer pool !",
          "create_time": 1468461517,
          "update_time": 1468461607
        }
      }
    }

Last updated