Cocon Fiber Transactional API (v1)
Download OpenAPI specification:Download
The Cocon Fiber Transactional API provides asset management functionality.
Create a new contact
Authorizations:
Request Body schema: application/jsonrequired
| name | string Name of the contact. Unallowed characters: ', " and ASCII < 32 |
| customerId | string Id of the customer the contact belongs to |
| isPrimaryContact | boolean Default: false Indicates whether the contact is the primary contact. |
| phoneNumber | string or null Phone number of the contact. Unallowed characters: ', " and ASCII < 32 |
| mobileNumber | string or null Mobile number of the customer. Unallowed characters: ', " and ASCII < 32 |
| emailAddresses | Array of strings or null Email address(es) of the contact. Unallowed characters: ', " and ASCII < 32 |
Responses
Request samples
- Payload
{- "name": "string",
- "customerId": "string",
- "isPrimaryContact": false,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Response samples
- 200
- 400
- 401
- 403
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "isPrimaryContact": true,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Update a contact
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Request Body schema: application/merge-patch+jsonrequired
| name | string Name of the contact. Unallowed characters: ', " and ASCII < 32 |
| isPrimaryContact | boolean Indicates whether the contact is the primary contact. |
| phoneNumber | string or null Phone number of the contact. Unallowed characters: ', " and ASCII < 32 |
| mobileNumber | string or null mobile number of the customer. Unallowed characters: ', " and ASCII < 32 |
| emailAddresses | Array of strings or null Email address(es) of the contact. Unallowed characters: ', " and ASCII < 32 |
Responses
Request samples
- Payload
{- "name": "string",
- "isPrimaryContact": true,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "isPrimaryContact": true,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Delete a contact by id
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 400
- 401
- 403
- 404
- 500
{- "timestamp": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "message": "string"
}Get a contact by the provided contact id (real time)
Authorizations:
path Parameters
| contactId required | string Id of the contact. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "isPrimaryContact": true,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Get a contact by the provided customer id and contact id (real time)
Authorizations:
path Parameters
| customerId required | string The id of customer to retrieve. |
| contactId required | string The id of customer contact to retrieve. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "isPrimaryContact": true,
- "phoneNumber": "string",
- "mobileNumber": "string",
- "emailAddresses": [
- "string"
]
}Create a customer
Authorizations:
Request Body schema: application/jsonrequired
The customer to create
| clientCode | string or null Client code of the customer. |
| name | string Name of the customer. Unallowed characters: ', " and ASCII < 32 |
object (PostalAddress) | |
object (OutageContactInformation) | |
object (CommunicationSettings) Contains the communication settings in case of planned work. | |
object or null Only accepts the following key:
|
Responses
Request samples
- Payload
{- "clientCode": "string",
- "name": "string",
- "postalAddress": {
- "street": "string",
- "houseNumber": "string",
- "zipCode": "string",
- "city": "string",
- "country": "string"
}, - "outageContactInformation": {
- "emailAddresses": [
- "string"
], - "phoneNumber": "string"
}, - "communicationSettings": {
- "callBefore": false,
- "callAfter": false,
- "emailBefore": false,
- "emailAfter": false,
- "correspondInDutch": true
}, - "additionalInformation": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 500
{- "id": "string",
- "name": "string",
- "postalAddress": "string",
- "emailAddresses": [
- "string"
], - "phoneNumber": "string",
- "callBefore": true,
- "callAfter": true,
- "emailBefore": true,
- "emailAfter": true,
- "correspondInDutch": true,
- "additionalInformation": {
- "property1": "string",
- "property2": "string"
}
}Get a customer by the provided contact id (real time)
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "postalAddress": "string",
- "emailAddresses": [
- "string"
], - "phoneNumber": "string",
- "callBefore": true,
- "callAfter": true,
- "emailBefore": true,
- "emailAfter": true,
- "correspondInDutch": true,
- "additionalInformation": {
- "property1": "string",
- "property2": "string"
}
}Update a customer
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Request Body schema: application/jsonrequired
The customer to update
| clientCode | string or null Client code of the customer. |
| name | string Name of the customer. Unallowed characters: ', " and ASCII < 32 |
object (PostalAddress) | |
object (OutageContactInformation) | |
object (CommunicationSettings) Contains the communication settings in case of planned work. | |
object or null Only accepts the following key:
|
Responses
Request samples
- Payload
{- "clientCode": "string",
- "name": "string",
- "postalAddress": {
- "street": "string",
- "houseNumber": "string",
- "zipCode": "string",
- "city": "string",
- "country": "string"
}, - "outageContactInformation": {
- "emailAddresses": [
- "string"
], - "phoneNumber": "string"
}, - "communicationSettings": {
- "callBefore": false,
- "callAfter": false,
- "emailBefore": false,
- "emailAfter": false,
- "correspondInDutch": true
}, - "additionalInformation": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "postalAddress": "string",
- "emailAddresses": [
- "string"
], - "phoneNumber": "string",
- "callBefore": true,
- "callAfter": true,
- "emailBefore": true,
- "emailAfter": true,
- "correspondInDutch": true,
- "additionalInformation": {
- "property1": "string",
- "property2": "string"
}
}Delete a customer
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 400
- 401
- 403
- 404
- 500
{- "timestamp": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "message": "string"
}Create a new contract
Authorizations:
Request Body schema: application/jsonrequired
| name | string Name of the customer contract |
| customerId | string Id of the customer the contract is related to |
| contactIds | Array of strings or null The contact Id's regarding this contract. |
| startDate | string or null <date> The start date of the contract. |
| endDate | string or null <date> The end date of the contract. |
| owner | string or null The owner of the contract. |
| comment | string Comment. Unallowed characters: ', " and ASCII < 32 |
| other | string or null Other information. |
| servicePriority | string or null The priority of this service |
| allowDivergentPriority | boolean Allow the priority of the provided service to divert from its set priority |
| contractTypeName | string Name of the type of the contract |
Responses
Request samples
- Payload
{- "name": "string",
- "customerId": "string",
- "contactIds": [
- "string"
], - "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "owner": "string",
- "comment": "string",
- "other": "string",
- "servicePriority": "string",
- "allowDivergentPriority": true,
- "contractTypeName": "string"
}Response samples
- 200
- 400
- 401
- 403
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "owner": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "remarks": "string",
- "additionalInformation": "string",
- "contacts": [
- {
- "id": "string",
- "href": "string"
}
]
}Get a customer contract by the provided contract id (real time)
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "owner": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "remarks": "string",
- "additionalInformation": "string",
- "contacts": [
- {
- "id": "string",
- "href": "string"
}
]
}Update a customer contract
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Request Body schema: application/merge-patch+jsonrequired
| name | string Name of the customer contract |
| contactIds | Array of strings The contact id's regarding this contract. |
| startDate | string or null <date> The start date of the contract. |
| endDate | string or null <date> The end date of the contract. |
| owner | string or null The owner of the contract. |
| comment | string Comment. |
| other | string or null Other information. |
| allowDivergentPriority | boolean Allow the priority of the provided service to divert from its set priority |
| contractTypeName | string Name of the type of the contract |
Responses
Request samples
- Payload
{- "name": "string",
- "contactIds": [
- "string"
], - "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "owner": "string",
- "comment": "string",
- "other": "string",
- "allowDivergentPriority": true,
- "contractTypeName": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "id": "string",
- "name": "string",
- "customerName": "string",
- "owner": "string",
- "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "remarks": "string",
- "additionalInformation": "string",
- "contacts": [
- {
- "id": "string",
- "href": "string"
}
]
}Delete a contract by id.
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 400
- 401
- 403
- 404
- 500
{- "timestamp": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "message": "string"
}Create a delayed connection for a building
Authorizations:
path Parameters
| id required | string |
Request Body schema: application/json
| frameName | string or null Short name of the frame |
| terminationUnitType | string or null Name of the fiber termination unit type that is placed in the frame |
| attenuation1 | number <double> First attenuation |
| attenuation2 | number <double> Second attenuation |
| installationCompanyName | string or null Name of the installation company |
| isWithoutGeometry | boolean Specifies that the newRoute value is intentionally omitted |
Responses
Request samples
- Payload
{- "frameName": "string",
- "terminationUnitType": "string",
- "attenuation1": 0.1,
- "attenuation2": 0.1,
- "installationCompanyName": "string",
- "newRoute": {
- "type": "Point",
- "bbox": [
- 0
], - "coordinates": [
- [
- 0,
- 0
], - [
- 0,
- 0
]
]
}, - "isWithoutGeometry": true
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "buildingId": "string",
- "cableId": "string",
- "frameId": "string",
- "patchPosition1Id": "string",
- "patchPosition2Id": "string"
}Create a delayed connection
Authorizations:
Request Body schema: application/json
| frameName | string or null Name of the frame |
| terminationUnitType | string or null Name of the fiber termination unit type that is placed in the frame |
| attenuation1 | number <double> First attenuation |
| attenuation2 | number <double> Second attenuation |
| installationCompanyName | string or null Name of the installation company |
| isWithoutGeometry | boolean Specifies that the newRoute value is intentionally omitted |
| buildingName | string or null Building name |
Responses
Request samples
- Payload
{- "frameName": "string",
- "terminationUnitType": "string",
- "attenuation1": 0.1,
- "attenuation2": 0.1,
- "installationCompanyName": "string",
- "newRoute": {
- "type": "Point",
- "bbox": [
- 0
], - "coordinates": [
- [
- 0,
- 0
], - [
- 0,
- 0
]
]
}, - "isWithoutGeometry": true,
- "buildingName": "string"
}Response samples
- 200
- 400
- 401
- 403
- 404
- 500
{- "buildingId": "string",
- "cableId": "string",
- "frameId": "string",
- "patchPosition1Id": "string",
- "patchPosition2Id": "string"
}Get status details for a delayed connections batch operation
Authorizations:
path Parameters
| id required | string Example: 10 or 1abc Unique identifier |
Responses
Response samples
- 200
- 401
- 403
- 404
- 500
{- "batchId": "string",
- "status": "string",
- "success": [
- {
- "buildingName": "string",
- "details": {
- "buildingId": "string",
- "cableId": "string",
- "frameId": "string",
- "patchPosition1Id": "string",
- "patchPosition2Id": "string"
}
}
], - "failure": [
- {
- "buildingName": "string",
- "errors": [
- {
- "timestamp": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "message": "string"
}
]
}
], - "pending": [
- {
- "buildingName": "string"
}
]
}Register a batch to create multiple delayed connections
Authorizations:
Request Body schema: application/json
| installationCompanyName | string or null Installation company that applies to all jobs in the batch |
Array of objects or null (DelayedConnectionRequestShort) Batch of delayed connections |
Responses
Request samples
- Payload
{- "installationCompanyName": "string",
- "delayedConnections": [
- {
- "buildingName": "string",
- "frameName": "string",
- "terminationUnitType": "string",
- "attenuation1": 0.1,
- "attenuation2": 0.1,
- "newRoute": {
- "type": "Point",
- "bbox": [
- 0
], - "coordinates": [
- [
- 0,
- 0
], - [
- 0,
- 0
]
]
}, - "isWithoutGeometry": true
}
]
}Response samples
- 200
- 400
- 401
- 403
- 500
{- "batchId": "string"
}Create a project asset approval
Authorizations:
Request Body schema: application/json
| projectName | string or null Name of the project this asset is part of and approved for |
| timestamp | string <date-time> Date and time of the moment of approval |
| approver | string or null Name of the original approver |
object (AssetApproval) |
Responses
Request samples
- Payload
{- "projectName": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "approver": "string",
- "assetApproval": {
- "asset": {
- "type": "Building",
- "name": "string"
}, - "installationCompany": "string",
- "type": "Photo",
- "author": "string"
}
}Response samples
- 400
- 401
- 403
- 500
{- "timestamp": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "message": "string"
}