Create a list

Creates a new list.

SecuritySecretApiKey or JWT
Request
Request Body schema: application/json
description
required
string

Description of the list.

values
required
Array of strings

Values in the list.

Responses
201

List created.

Response Headers
Location
string <uri>

Location of the related resource.

Example: "https://api.rebilly.com/example"
Response Schema: application/json
description
required
string

Description of the list.

values
required
Array of strings

Values in the list.

id
string <= 50 characters

ID of the list.

version
integer >= 1

Version of the list.

createdTime
string <date-time> (CreatedTime)

Date and time which is set automatically when the resource is created.

updatedTime
string <date-time> (UpdatedTime)

Date and time which updates automatically when the resource is updated.

Array of objects (Self) non-empty

Related links.

Array (non-empty)
href
required
string

Link URL.

rel
required
string

Type of link.

Value: "self"
401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data sent.

post/lists
Request samples
application/json
{
  • "description": "string",
  • "values": [
    ]
}
Response samples
application/json
{
  • "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "version": 1,
  • "description": "string",
  • "values": [
    ],
  • "createdTime": "2019-08-24T14:15:22Z",
  • "updatedTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ]
}