Create a booth provisioning data entry

POST /api/booths_provisioning

Allows you to create data for a booth's provisioning and upload certificates to S3.

Responses

  • 201 application/json

    Entity created

    Hide response attributes Show response attributes object
    • certificate_id string

      ID of the certificate, inferred from the uploaded certs file

    • completion_status string

      Status of completion of the provisioning process.

    • hw_configuration string

      Specific HW configuration for the booth.

    • new_password string

      Randomly generated password for the PLC.

    • old_password string

      Password initially generated for the PLC.

    • s3_certs_path string

      Path in S3 where the booth's certificates are stored

    • serial_number string

      serial number of the booth the data belongs to

  • 400 application/json

    Bad request

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • 409 application/json

    Conflict

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

POST /api/booths_provisioning
curl \
 --request POST 'http://localhost:4000/api/booths_provisioning' \
 --header "Authorization: $API_KEY"
Response examples (201)
{
  "new_password": "NewRandomPassword",
  "old_password": "Generic password",
  "s3_certs_path": "ABCD1234/a5d43ba45c3b54add35b565655737afff47a7b4d7f47abc767a7.zip",
  "serial_number": "ABCD1234",
  "certificate_id": "a5d43ba45c3b54add35b565655737afff47a7b4d7f47abc767a7",
  "hw_configuration": "6-slot",
  "completion_status": "IN PROGRESS"
}
Response examples (201)
{
  "new_password": "NewRandomPassword",
  "old_password": "Generic password",
  "s3_certs_path": "ABCD1234/a5d43ba45c3b54add35b565655737afff47a7b4d7f47abc767a7.zip",
  "serial_number": "ABCD1234",
  "certificate_id": "a5d43ba45c3b54add35b565655737afff47a7b4d7f47abc767a7",
  "hw_configuration": "6-slot",
  "completion_status": "IN PROGRESS"
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (409)
{
  "error": "Error Reason"
}
Response examples (409)
{
  "error": "Error Reason"
}