Artifacts

Publish an artifact's next version

Changed on

The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since.

post/api/artifacts/{artifactId}/versions

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header x-sixb-csrf
    • HTTP bearer
    • HTTP bearer

Path parameters

artifactIdstring required

Request body

kind'document' | 'sheet' | 'slides' | 'page' | 'canvas' | 'file' required
titlestring required
baseVersioninteger

The version this one was made from. When another was published since, the publish is refused with 409 artifact_moved, naming the latest version.

Response

Response for status 201

Changes

    • warning

      added the new canvas enum value to the / response property for the response status

    • warning

      added the new page enum value to the / response property for the response status

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property (media type: multipart/form-data)

    • info

      added the new canvas enum value to the request property (media type: application/json)

    • info

      added the new canvas enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new canvas enum value to the request property (media type: multipart/form-data)

    • info

      added the new page enum value to the request property (media type: application/json)

    • info

      added the new page enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new page enum value to the request property (media type: multipart/form-data)

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added subschema #4 subschema #5 to the / response property anyOf list for the response status

    • breaking

      removed the enum value canvas of the request property (media type: application/json)

    • breaking

      removed the enum value canvas of the request property (media type: application/x-www-form-urlencoded)

    • breaking

      removed the enum value canvas of the request property (media type: multipart/form-data)

    • breaking

      removed the enum value page of the request property (media type: application/json)

    • breaking

      removed the enum value page of the request property (media type: application/x-www-form-urlencoded)

    • breaking

      removed the enum value page of the request property (media type: multipart/form-data)

    • warning

      removed the request property (media type: application/json)

    • warning

      removed the request property (media type: application/x-www-form-urlencoded)

    • warning

      removed the request property (media type: multipart/form-data)

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      removed subschema #4 subschema #5 from the / response property anyOf list for the response status

    • info

      removed the canvas enum value from the / response property for the response status

    • info

      removed the page enum value from the / response property for the response status