Update the settings for a platform

HTTP method

Endpoint

PUT

/v1/offers/{offer_id}/platforms/{platform_id}

Path parameters

Parameter

Description

offer_id

The unique id for the offer.

platform_id

The unique id for the platform.

Request body parameters

Field

Type

Description

Nullable

platform

string

Devices to be targeted, eg: PC/Mobile/Tablet If not selected, by default it allows all platforms.

No

system

string

Operating System in platforms,by defaut it allows all OS without setting.

version

array

OS Version.By defaut it allows all versions in the selected OS.

is_above

integer

A new field, is_above, is added to offer platform to support upper compatibility in platform. When new platform versions are upgraded, the traffic won’t be rejected. Allowed values: 0 Close; 1 Open

Response body parameters

Field

Type

Description

id

integer

offer_id

integer

A string that uniquely identifies this offer.

platform

string

Devices to be targeted, it might be PC/Mobile/Tablet

system

string

Operating System in Device. By default it allows all OS in targeted platform.

version

array

Version of the system. By default it allows all versions in targeted system.

Example request

Request PUT https://{networkname}.api.offerslook.com/v1/offers/3174/platforms/2972

    {
      "platform": "PC",
      "is_above": 1
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "offer_platform": {
          "target": [
            {
              "id": 2972,
              "offer_id": 3147,
              "platform": "PC",
              "system": "",
              "version": [

              ],
              "is_above": 1
            }
          ]
        }
      }
    }

Last updated