Create new yard config

POST /api/automated-billing/config/yard/{yardId}

Create a new billing configuration for the specified yard. An error will be returned in the configuration already exists.

Path parameters

  • yardId integer(int64) Required

    The ID of the yard

application/json

Body

  • enabled boolean

    Flag indicating whether the yard configuration is enabled

    Default value is true.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)

      Unique identifier of the yard configuration

    • yard_id integer(int64)

      Identifier of the yard

    • enabled boolean

      Indicates if the yard configuration is enabled

    • Timestamp when the configuration was last modified

    • Username of the last modifier of this configuration

  • Not Authorized

  • Not Allowed

POST /api/automated-billing/config/yard/{yardId}
curl \
 -X POST https://api-dev.gatego.io/api/automated-billing/config/yard/{yardId} \
 -H "Content-Type: application/json" \
 -d '{"enabled":true}'
Request examples
{
  "enabled": true
}
Response examples (200)
{
  "id": 1,
  "yard_id": 100,
  "enabled": true,
  "last_modified_at": "2023-04-06T11:25:42Z",
  "last_modified_by": "355c30f0-96d2-4dbe-bfe8-f8dd9eb7f778"
}