POST api/Bookyears/PostBookyear/{companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

integer

Required

Body Parameters

Bookyear
NameDescriptionTypeAdditional information
BookyearId

integer

None.

BookyearNumber

string

Required

String length: inclusive between 0 and 5

StartDate

date

Required

EndDate

date

Required

NextInvoiceNumber

integer

Required

NextDeliveryNumber

integer

Required

NextOrderNumber

integer

Required

NextQuoteNumber

integer

Required

NextProFormaNumber

integer

Required

NextCraneLeaseNumber

integer

Required

CompanyId

integer

None.

ObjectState

ObjectState

None.

Request Formats

application/json, text/json

Sample:
{
  "bookyearId": 1,
  "bookyearNumber": "sample string 2",
  "startDate": "2025-12-12T08:54:51.2336316+01:00",
  "endDate": "2025-12-12T08:54:51.2336316+01:00",
  "nextInvoiceNumber": 5,
  "nextDeliveryNumber": 6,
  "nextOrderNumber": 7,
  "nextQuoteNumber": 8,
  "nextProFormaNumber": 9,
  "nextCraneLeaseNumber": 10,
  "companyId": 11,
  "objectState": 0
}

application/xml, text/xml

Sample:
<Bookyear xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <ObjectState xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Repository">Unchanged</ObjectState>
  <BookyearId>1</BookyearId>
  <BookyearNumber>sample string 2</BookyearNumber>
  <CompanyId>11</CompanyId>
  <EndDate>2025-12-12T08:54:51.2336316+01:00</EndDate>
  <NextCraneLeaseNumber>10</NextCraneLeaseNumber>
  <NextDeliveryNumber>6</NextDeliveryNumber>
  <NextInvoiceNumber>5</NextInvoiceNumber>
  <NextOrderNumber>7</NextOrderNumber>
  <NextProFormaNumber>9</NextProFormaNumber>
  <NextQuoteNumber>8</NextQuoteNumber>
  <StartDate>2025-12-12T08:54:51.2336316+01:00</StartDate>
</Bookyear>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>