Link a connector's job to a print that is already Printing.
For connectors that report a job the slicer uploader, the Cura plugin or a hand entry has already logged. Find the print with GET /api/Prints/claimable, then claim it instead of creating a second one. Sets externalSource and externalId (same rules as on create), the connection named by connectionInstanceId when it is yours, and startDate when the print has none, and fileHash (as on create) when the print has none: a hash it already has, such as OctoPrint's SHA-1, is kept. The print keeps its title, notes, usage rows and how it was created. Finish it with POST /api/Prints/{id}/complete.
Only your own print can be claimed, only while it is Printing (2) and not yet linked to a job. Claiming again with the same pair returns the print unchanged, so retries are safe. A different pair, a print that is no longer Printing, or a pair already on another of your prints is a 409; in the last case printId in the body names that print. After a claim, POST /api/Prints with the same pair returns this print rather than creating one.
Request
- Base URL: https://api.3dprintlog.com
- URL: https://api.3dprintlog.com/api/Prints/{id}/claim
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://3dprintlog.auth0.com/authorize, token URL https://3dprintlog.auth0.com/oauth/token)
- API key in header X-Api-Key
- API key in query parameter api_key
Path parameters
The ID of the print.
Request body
Response
The claimed print.
Changes
No recorded changes to this operation across all 1 revision of this API.