Description

Get list of all Categories of an account for a specific revision

URI

/api/account/{accountId}/configuration/le-categories/categories/revision/{revision}?v=2.0

HTTP Methods

GET

Response Codes

200 OK

400 Bad Request

401 Not Authorized

404 Data not found

500 Internal server error

Formats

JSON

Path Parameters

Parameter Description Notes
accountId LP site id Validation fail error code: 400 Type: String
revision Revision id Type: Positive long number greater than zero

Query Parameters

Parameter Description Notes
select dynamic selection of response fields Default: $summary alias: id,deleted,name Available aliases: $all: id,deleted,name,order,proposed $summary: id,deleted,name type: YOGA 'gdata' dialect validation error: 400 supported fields: any in response body **yoga GData dialect builder url: https://github.com/skyscreamer/yoga/wiki/Using-the-Selector-Builder-GUI
include_deleted Whether include deleted items in the response or not Default: false

Request Headers

Header Description
Authorization Contains token string to allow request authentication and authorization. See the doc for more details.

Request Body

N/A

Response Headers

Header Description
ac-revision Account config object type collection revision

Response Body

[ { "id": 1, "deleted": false, "name": "iPhone4", "order": 1, "proposed": true }, { "id": 2, "deleted": false, "name": "iPhone5", "order": 2, "proposed": true } ]
Attribute Description Notes
id Account Config object’s unique id. Required Type: long number
name Value of Category name Type: string
deleted Whether the item is deleted or not Type: boolean
order Sorting order of category Type: number
proposed Category might be marked as proposed, this means every engagement will be assigned to it upon creation. Type:boolean Default: false