Laurel InitiativeDto API
The InitiativeDto API from Laurel — 2 operation(s) for initiativedto.
The InitiativeDto API from Laurel — 2 operation(s) for initiativedto.
openapi: 3.0.0
info:
title: Identity Service Ably InitiativeDto API
description: ''
version: '1'
contact: {}
servers: []
security:
- ApiBearerAuth: []
tags:
- name: InitiativeDto
paths:
/api/v1/customers/{customerId}/initiatives:
post:
operationId: CustomerInitiativeDtoController_createPmsInitiativeWithLaurelUser_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportCustomerInitiativeDto'
responses:
default:
description: ''
content:
application/json:
schema:
items:
$ref: '#/components/schemas/PmsInitiativeDto'
tags:
- InitiativeDto
/api/v1/customers/{customerId}/users/{userId}/initiatives/{initiativeId}:
get:
operationId: CustomerUserInitiativeDtoController_getInitiativeV2_v1
parameters:
- name: customerId
required: true
in: path
schema:
format: objectid
type: string
- name: userId
required: true
in: path
schema:
format: objectid
type: string
- name: initiativeId
required: true
in: path
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
items:
oneOf:
- $ref: '#/components/schemas/UserInitiativeDto'
- $ref: '#/components/schemas/PmsInitiativeDto'
tags:
- InitiativeDto
components:
schemas:
UserInitiativeDto:
type: object
properties:
_id:
type: string
description: initiative's id
format: objectid
billingType:
description: initiative's billing type
enum:
- billable
- non-billable
type: string
callSign:
type: string
description: a short name or abbreviation that identifies this initiative
createdAt:
type: string
description: date and time this initiative was created
example: '2022-08-12T20:44:48Z'
format: iso-date-time
locale:
type: string
description: BCP-47 locale for this initiative (e.g. en-US, fr-CA)
enum:
- da-DK
- de-DE
- en-CA
- en-GB
- en-US
- es-ES
- es-MX
- fi-FI
- fr-CA
- fr-FR
- is-IS
- it-IT
- ko-KR
- nl-NL
- no-NO
- pt-PT
- sv-SE
nullable: true
status:
description: initiative's status
enum:
- active
- inactive
type: string
unitIncrements:
type: number
description: unit of billing increments for this initiative
format: double
updatedAt:
type: string
description: date and time this initiative was last updated
example: '2022-08-12T20:44:48Z'
format: iso-date-time
name:
type: string
description: a name that identifies this initiative for the user
type:
type: string
enum:
- user
props:
nullable: true
type: object
allOf:
- $ref: '#/components/schemas/UserInitiativePropsDto'
required:
- _id
- billingType
- callSign
- createdAt
- status
- unitIncrements
- updatedAt
- name
- type
PmsInitiativeDto:
type: object
properties:
_id:
type: string
description: initiative's id
format: objectid
billingType:
description: initiative's billing type
enum:
- billable
- non-billable
type: string
callSign:
type: string
description: a short name or abbreviation that identifies this initiative
createdAt:
type: string
description: date and time this initiative was created
example: '2022-08-12T20:44:48Z'
format: iso-date-time
locale:
type: string
description: BCP-47 locale for this initiative (e.g. en-US, fr-CA)
enum:
- da-DK
- de-DE
- en-CA
- en-GB
- en-US
- es-ES
- es-MX
- fi-FI
- fr-CA
- fr-FR
- is-IS
- it-IT
- ko-KR
- nl-NL
- no-NO
- pt-PT
- sv-SE
nullable: true
status:
description: initiative's status
enum:
- active
- inactive
type: string
unitIncrements:
type: number
description: unit of billing increments for this initiative
format: double
updatedAt:
type: string
description: date and time this initiative was last updated
example: '2022-08-12T20:44:48Z'
format: iso-date-time
description:
type: string
description: the full long name of the initiative
externalId:
type: string
description: initiative's external id
name:
type: string
description: a short name or code that identifies this initiative
allowFrom:
type: string
description: earliest calendar date on which this initiative is valid for use (date-only, midnight UTC, inclusive)
example: '2022-08-12'
format: iso-date
nullable: true
allowTo:
type: string
description: latest calendar date on which this initiative is valid for use (date-only, midnight UTC, inclusive)
example: '2022-08-12'
format: iso-date
nullable: true
client:
description: the client this initiative belongs to
allOf:
- $ref: '#/components/schemas/ClientDigest'
type:
type: string
enum:
- pms
props:
nullable: true
type: object
allOf:
- $ref: '#/components/schemas/PmsInitiativePropsDto'
required:
- _id
- billingType
- callSign
- createdAt
- status
- unitIncrements
- updatedAt
- description
- externalId
- name
- client
- type
UserInitiativePropsDto:
type: object
properties:
_id:
type: string
description: identifier of the initiative props
format: objectid
colorHex:
type: string
description: the hex color code for the initiative props
tags:
type: array
description: array of initiative props tags
items:
type: string
enum:
- pinned
userId:
type: string
description: identifier of the user who owns the initiative props
format: objectid
required:
- _id
- colorHex
- tags
- userId
PmsInitiativePropsDto:
type: object
properties:
_id:
type: string
description: identifier of the initiative props
format: objectid
colorHex:
type: string
description: the hex color code for the initiative props
tags:
type: array
description: array of initiative props tags
items:
type: string
enum:
- pinned
userId:
type: string
description: identifier of the user who owns the initiative props
format: objectid
nickname:
type: string
description: the nickname assigned to this initiative by the user
nullable: true
required:
- _id
- colorHex
- tags
- userId
ClientDigest:
type: object
properties:
_id:
type: string
description: client's id
format: objectid
externalId:
type: string
description: client's external id
name:
type: string
description: a name that identifies this client
description:
type: string
description: client's description
callSign:
type: string
description: a short name or abbreviation that identifies this client
type:
type: string
description: client's type, default is client
enum:
- client
- parent
nullable: true
parentClientId:
type: string
description: id of the parent client
format: objectid
nullable: true
required:
- _id
- externalId
- name
- description
- callSign
ImportCustomerInitiativeDto:
type: object
properties:
billingType:
description: the billing type for this initiative
enum:
- billable
- non-billable
type: string
externalId:
type: string
description: initiative's external id
name:
type: string
description: a name that identifies this initiative
description:
type: string
description: the description of the initiative
callSign:
type: string
description: a short name or abbreviation that identifies this initiative
clientExternalId:
type: string
description: external id of client this initiative belongs to
externalGroupIds:
description: list of external group ids that have access to this initiative
nullable: true
type: array
items:
type: string
unitIncrements:
type: number
description: unit of billing increments for this initiative in seconds. 36 = 0.01, 360 = 0.1 and 900 = 0.25
format: double
locale:
type: string
description: BCP-47 locale for this initiative (e.g. en-US, fr-CA)
enum:
- da-DK
- de-DE
- en-CA
- en-GB
- en-US
- es-ES
- es-MX
- fi-FI
- fr-CA
- fr-FR
- is-IS
- it-IT
- ko-KR
- nl-NL
- no-NO
- pt-PT
- sv-SE
nullable: true
status:
type: string
description: initiative's status
enum:
- active
- inactive
allowFrom:
type: string
description: earliest calendar date on which this initiative is valid for use (date-only, midnight UTC, inclusive)
example: '2022-08-12'
format: iso-date
nullable: true
allowTo:
type: string
description: latest calendar date on which this initiative is valid for use (date-only, midnight UTC, inclusive)
example: '2022-08-12'
format: iso-date
nullable: true
required:
- billingType
- externalId
- name
- description
- callSign
- clientExternalId
- unitIncrements
securitySchemes:
ApiBearerAuth:
scheme: bearer
bearerFormat: JWT
description: Enter access token
type: http
externalDocs:
description: Laurel API Documentation
url: https://developer.laurel.ai/