Statistical Journals

Update StatisticalJournal record

Update an existing StatisticalJournal record with the provided data. Validates all required fields and business rules.

put/public/v2/statistical-journals/{record_number}/

Path parameters

record_numberinteger required

The number attribute of the record.

The number attribute of the record.

Headers

Idempotency-Keystring

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Request body

account_idinteger required
datestring date nullable
memostring
record_status'draft' | 'posted' | 'archived'

Response

OK

idinteger required
numberinteger required
account_idinteger required
account_namestring required
account_numberinteger required
periodstring date required
datestring date required
memostring required
record_status'draft' | 'posted' | 'archived' required
total_quantitystring required
created_atstring date-time required

Date and time the record was created

updated_atstring date-time required

Date and time the record was last updated

Changes

Changed in 4 of the 14 revisions of this API.9315

  • 48edcb3acb7423See the full diff
    • removed the optional property has_more_lines from the response with the 200 status

      response-optional-property-removed

    • removed the optional property lines_count from the response with the 200 status

      response-optional-property-removed

    • api operation id update_StatisticalJournalV2_record removed and replaced with update_StatisticalJournal_record

      api-operation-id-removed

    • the response property items became required for the status 200

      response-property-became-required

    • the items response's property default value was removed for the status 200

      response-property-default-value-removed

    This revision also has 93 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional header request parameter Idempotency-Key

      new-optional-request-parameter

  • 506e6073d191817See the full diff
    • added the new required request property account_id

      new-required-request-property

    • the response property items/items/account_id became nullable for the status 200

      response-property-became-nullable

    • the response property items/items/account_name became nullable for the status 200

      response-property-became-nullable

    • the response property items/items/account_number became nullable for the status 200

      response-property-became-nullable

    • the response property items/items/account_id became optional for the status 200

      response-property-became-optional

    • the response property items/items/account_name became optional for the status 200

      response-property-became-optional

    • the response property items/items/account_number became optional for the status 200

      response-property-became-optional

    • the response property items/items/company_id became optional for the status 200

      response-property-became-optional

    • removed the request property items/items/account_number

      request-property-removed

    • added the new optional request property items/items/account_id

      new-optional-request-property

    • the request property items/items/classifications/items/id became nullable

      request-property-became-nullable

    • the request property items/items/classifications/items/id became optional

      request-property-became-optional

    • added the required property account_id to the response with the 200 status

      response-required-property-added

    • added the required property account_name to the response with the 200 status

      response-required-property-added

    • added the required property account_number to the response with the 200 status

      response-required-property-added

    • added the required property id to the response with the 200 status

      response-required-property-added

    This revision also has 21 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 64136e8e19bb14See the full diff
    • the response property items became optional for the status 200

      response-property-became-optional

    • api operation id update_StatisticalJournal_record removed and replaced with update_StatisticalJournalV2_record

      api-operation-id-removed

    • added the optional property has_more_lines to the response with the 200 status

      response-optional-property-added

    • added the optional property lines_count to the response with the 200 status

      response-optional-property-added

    • the items response's property default value was added for the status 200

      response-property-default-value-added

    This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog