APG PayAPG Paydocs

Reference data

Create named lists

POST/named-lists

Make a named list holding the entries given, as version 1. Every entry is checked against the list's kind, and refused with every reason if it fails.

Permissions

Required permission
settings:update

Requires the `update` action on `settings` for the supplied runtime context

Request body

This body is a tagged shape: type is always "NlstCmdCreate". Send it; more variants can be added, and a caller that switches on it keeps working when they are.

Discriminated by type
type = "NlstCmdCreate"
domainstringrequired

The area the list is for, as ruleAreaId names it.

The tenant that owns the list. Absent for the caller's own tenant.

namestringrequired

Example Ada Lovelace

kindstringrequired

The kind of entry it holds, one of the area's listKinds.

descriptionstring
entriesarray of string
curl -X POST https://api.tst.au.apgpay.dev/named-lists \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "NlstCmdCreate",
  "domain": "string",
  "owner": {
    "type": "SpolOwnerEnterprise",
    "enterpriseId": "ent_9f2Kd8QpLzXw"
  },
  "name": "Ada Lovelace",
  "kind": "string",
  "description": "string",
  "entries": [
    "string"
  ]
}'

Responses

The response is a tagged shape: type is always "NlstCreateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "NlstCreateRspAttributes"

The resource that was created.

Example
{
  "type": "NlstCreateRspAttributes",
  "created": {
    "type": "NlstViewAttributes",
    "namedListId": "nlst_9f2Kd8QpLzXw",
    "name": "Ada Lovelace",
    "domain": "string",
    "owner": {
      "type": "SpolOwnerEnterprise",
      "enterpriseId": "ent_9f2Kd8QpLzXw"
    },
    "kind": "string",
    "description": "string",
    "version": 1250,
    "createdAt": "2026-08-19T04:21:07Z",
    "createdBy": "string",
    "createdByActor": {
      "type": "SpolActorPerson",
      "id": "string",
      "displayName": "Ada Lovelace"
    },
    "updatedAt": "2026-08-19T04:21:07Z",
    "retiredAt": "2026-08-19T04:21:07Z",
    "permittedActions": [
      "Edit"
    ]
  }
}

Error responses