🌿
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. Time

Validation Rules

PreviousInitiatives

Last updated 1 year ago

post
Authorizations
Path parameters
customerIdstring · objectidRequired

customer id

initiativeExternalIdstringRequired

initiative's external id

Body
requiredCodeTypeExternalIdsstring[]Optional

code type external identifiers that are required for an entry

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

{
  "requiredCodeTypeExternalIds": [
    "text"
  ]
}
200Success
{
  "_id": "text",
  "cannotReleaseFutureWork": true,
  "cannotReleaseNegativeIncrement": true,
  "cannotReleaseZeroIncrement": true,
  "createdAt": "2022-08-12T20:44:48Z",
  "customerId": "text",
  "initiative": {
    "type": "pms",
    "_id": "text",
    "billingType": "billable",
    "callSign": "text",
    "unitIncrements": 1,
    "externalId": "text",
    "name": "text",
    "description": "text",
    "client": {
      "_id": "text",
      "externalId": "text",
      "name": "text",
      "description": "text",
      "callSign": "text"
    }
  },
  "isSummaryRequired": true,
  "updatedAt": "2022-08-12T20:44:48Z",
  "schemaVersion": "text",
  "requiredCodeTypes": [
    {
      "_id": "text",
      "externalId": "text",
      "name": "text",
      "semanticType": "action"
    }
  ]
}