Custom Reports
Duplicate a custom report
Creates a duplicate of a custom report for the authenticated user with all relationships copied. The new report will have '(1)' appended to the title if a conflict exists.
post/api/custom-reports/{id}/duplicate
Request
- Base URLhttps://api.sponsorunited.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/custom-reports/:id/duplicate/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
The unique identifier of the custom report to duplicate
Response
Custom report duplicated successfully
Example response
{
"file": {
"user_id": 1,
"original_name": "document.pdf",
"stored_name": "2023_01_document.pdf",
"mime_type": "application/pdf",
"file_size": 2048,
"file_hash": "5fghjk234ghj234gj234g234",
"url": "https://example.com/files/2023_01_document.pdf",
"thumbnail_id": 2
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.