Create a new category of the network

HTTP method

Endpoint

POST

/v1/offer_categories

Request body parameters

Field

Type

Description

Nullable

name

string

Name

No

Response body parameters

Field

Type

Description

id

integer

A string that uniquely identifies this category.

name

string

Types

create_time

string

Create time for classification.

Example request

Request POST https://{networkname}.api.offerslook.com/v1/offer_categories

Request POST http://{networkname}.api.offerslook.com/v1/offer_categories

{
      "name": "Sunday"
    }

Example response

{
      "code": 0,
      "message": "Success",
      "data": {
        "offer_category": {
          "id": 76,
          "name": "Sunday",
          "create_time": 1461914205
        }
      }
    }

Last updated