post https://delhivery.preprod.fxtrt.io/app/api/v2/facilities
Parameter | Description | Type | Validation |
---|---|---|---|
facilityName * | The name of the participant facility | string | minLength: 1 maxLength: 64 |
facilityCode * | Any unique id associated with the participant facility being created | string | minLength: 1 maxLength: 64 pattern: ^\S{1,64}$ |
facilityOwnerId | The participant id of the participant-type as specified in allowedOwners during the creation of the said type | string (participant-type:uuid of participant). If no value is passed, tenant id will be stored. | minLength: 1 maxLength: 64 |
facilityType * | The type of the facility | string | pattern: ^[a-zA-z][a-zA-z0-9,_\-]{0,15}$ minLength: 1 maxLength: 16 |
propertyId * | The ID Of the property this facility belongs to | string | participantId format validation (participant-type:id) |
property * | property object of the facility | object | object with property details (refer schema) |
area | Area of the facility | number | |
startTime * | starting time of facility | string | |
endTime | end time of facility | string | |
operatingDuration * | Hours of operation of facility | string | **regex: (1[012] |
operatingDays | Days of operation | array | |
teams | the array of team ids the facility belongs to | array | array of team ids |