🌿
Laurel APIs
  • Introduction
  • Guides
    • Authentication
    • Building A Connector
    • Public Api Endpoints
  • Services
    • Identity
      • Oauth
      • Users
    • Ingestion
      • Clients
      • Codes
      • Initiatives
      • Validation Rules
    • Time
      • Clients
      • Code Types
      • Codes
      • Entries
      • Initiatives
      • Validation Rules
Powered by GitBook
On this page
  1. Services
  2. Ingestion

Codes

PreviousClientsNextInitiatives

Last updated 1 year ago

  • POST/api/v1/customers/{customerId}/codes/import
  • POST/api/v1/customers/{customerId}/codes/batch
post
Authorizations
Path parameters
customerIdstring · objectidRequired
Body
externalIdstringRequired

code's external id

namestringRequired

code's name

descriptionstringRequired

code's description, can be empty

codeTypeExternalIdstringRequired

code's type's external id

Responses
201Success
post
POST /api/v1/customers/{customerId}/codes/import HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 84

{
  "externalId": "text",
  "name": "text",
  "description": "text",
  "codeTypeExternalId": "text"
}
201Success

No content

post
Authorizations
Path parameters
customerIdstring · objectidRequired
Query parameters
isInitialbooleanOptional
Body
Responses
201Success
post
POST /api/v1/customers/{customerId}/codes/batch HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "codes": [
    {
      "externalId": "text",
      "name": "text",
      "callSign": "text",
      "description": "text"
    }
  ]
}
201Success

No content