馃尶
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

Initiatives

PreviousCodesNextValidation Rules

Last updated 1 year ago

delete
Authorizations
Path parameters
customerIdstring 路 objectidRequired
initiativeExternalIdstringRequired
Responses
200Success
delete
DELETE /api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/codes HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
200Success

No content

  • POST/api/v2/customers/{customerId}/initiatives/consolidated-batch
  • POST/api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/access
  • POST/api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/codes
  • DELETE/api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/codes
post
Authorizations
Path parameters
customerIdstring 路 objectidRequired
Query parameters
isInitialbooleanOptional
Body
Responses
201Success
post
POST /api/v2/customers/{customerId}/initiatives/consolidated-batch HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 395

{
  "initiatives": [
    {
      "initiative": {
        "billingType": "billable",
        "externalId": "text",
        "name": "text",
        "description": "text",
        "callSign": "text",
        "clientExternalId": "text",
        "unitIncrements": 1,
        "status": "active"
      },
      "codes": {
        "isCodesEmpty": true,
        "codes": [
          {
            "codeExternalId": "text",
            "codeTypeExternalId": "text"
          }
        ]
      },
      "entryValidationRules": {
        "isRequiredCodeTypeExternalIdsEmpty": true,
        "requiredCodeTypeExternalIds": [
          "text"
        ]
      }
    }
  ]
}
201Success

No content

post
Authorizations
Path parameters
customerIdstring 路 objectidRequired
initiativeExternalIdstringRequired
Body
typestring 路 enumRequired

type of access.

Possible values:
userIdsstring 路 objectid[]Optional

list of users whose access is either allowed or denied for an initiative.

Responses
201Success
post
POST /api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/access HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "type": "allow",
  "userIds": [
    "text"
  ]
}
201Success

No content

post
Authorizations
Path parameters
customerIdstring 路 objectidRequired
initiativeExternalIdstringRequired
Body
codeExternalIdsstring[] 路 min: 1 路 max: 2500Required
Responses
201Success
post
POST /api/v1/customers/{customerId}/initiatives/{initiativeExternalId}/codes HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "codeExternalIds": [
    "text"
  ]
}
201Success

No content