post
https://api.duodeal.app/api/pins
Creates a new pin with a first comment on a quotation.
-
Anonymous users: Must provide
authorNameand optionallyauthorEmail- Authenticated users: Author info is automatically set from user profile (can add
X-API-KEYheader)
Body FieldsField Type Required Description quotationUuidstring (UUID) Yes Target quotation identifier contentstring Yes First comment content authorNamestring No* Name of the author (*required if anonymous) authorEmailstring No Email of the author offsetXfloat No Horizontal position of the pin offsetYfloat No Vertical position of the pin zoneIdstring No Zone identifier where the pin is placed Response FieldsField Type Description uuidstring Pin unique identifier offsetXfloat Horizontal position offsetYfloat Vertical position zoneIdstring Zone identifier commentsarray Comments (includes first comment) comments[].uuidstring Comment unique identifier comments[].contentstring Comment text comments[].authorNamestring Author name comments[].authorobject/null User object if authenticated comments[].createdAtdatetime Comment creation timestamp createdAtdatetime Pin creation timestamp Response201 Created: Pin and comment successfully created400 Bad Request: Missing required fields404 Not Found: Quotation not found
- Authenticated users: Author info is automatically set from user profile (can add
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201Resource created
400Bad request
401Unauthorized
