Design Versions
Last updated
Last updated
This endpoint makes an HTTP GET request to retrieve a list of design versions
Method: GET
Endpoint: https://api.creatopy.com/v1/designVersion
Query Parameters:
hash
(string, required): The hash of the design.
Response Body
response
(array)
id
(string): The version id.
lastModified
(date): The last modification date of the design.
lastModifiedByName
(string): The user's name who made the last modifications to the design.
lastModifiedByProfilePicture
(string): The user's profilePicture who made the last modifications to the design.
versionName
(string): The name of the version.
sizeHash
(string): The size's hash from the set
{
"response": [
{
"id": "w8Tz8D_sdUs1dr1PxyB6CoeG8pllRLFF",
"lastModified": "2024-11-13T08:18:29.000Z",
"lastModifiedByName": "User name",
"lastModifiedByProfilePicture": "",
"versionName": "",
"sizeHash": "gry44d"
},
{
"id": "pY3_mntBqded4dvBwOyT9uSYXmNyfw4q",
"lastModified": "2024-11-13T08:09:09.000Z",
"lastModifiedByName": "User Name",
"lastModifiedByProfilePicture": "",
"versionName": "",
"sizeHash": "uhuh7"
},
]
}
This endpoint allows you to create a new version for a design.
Method: POST
Endpoint: https://api.creatopy.com/v1/designVersion
Body:
hash
(string, required): The hash of the design.
versionName
(string, required): The new version's name.
The response will be in JSON format with the following structure:
response
(object)
status
(enum) - (succes, failed)
{
"response": {
"status": "success"
}
}
This endpoint allows you to update a version's name.
Method: PUT
Endpoint: https://api.creatopy.com/v1/designVersion
Body:
hash
(string, required): The hash of the design.
versionName
(string, required): The new name of the design version.
versionId
(string, required): The versionId of the design version.
The response will be in JSON format:
{
"response": {
"status": "success"
}
}
This endpoint allows you to restore a version of a design.
Method: POST
Endpoint: https://api.creatopy.com/v1/designVersion/restore
Body:
hash
(string, required): The hash of the design
versionId
(string, required): The versionId of the version.
The response will be in JSON format:
{
"response": {
"status": "success"
}
}