Important!
The 3D print API is shutting down on January 15, 2017. See our end of life notice for more information.
POST meshes/rename¶a>
Creates a new mesh that is a copy of the input mesh. Note that this endpoint does not rename the existing mesh.
Resource Information¶
Method and URI | POST https:/ |
Authentication Context | user context required |
Required OAuth Scopes | data:read data:write |
Data Format | JSON |
Request¶
HTTP Headers¶
Name |
Required |
Value Type |
Description |
---|---|---|---|
Authorization | yes | string | Must be Bearer <token> , where <token> is obtained via a three- |
Content-Type | yes | string | Must be application/json |
Body Structure¶
The POST body is a single, flat JSON object with the following attributes:
Name |
Required |
Value Type |
Description |
---|---|---|---|
id | yes | string: UUID | id of the mesh to be copied |
name | yes | string | the human-readible name for the new mesh |
Response¶
HTTP Status Code Summary¶
Code |
Message |
Meaning |
---|---|---|
200 | OK | Successful |
400 | Bad Request | Invalid request. E.g., the request could not be parsed. |
401 | Unauthorized | Invalid authorization header. E.g., user is not logged in, or cannot access resource. |
404 | Not Found | Endpoint does not exist. |
422 | Unprocessable Entity | Semantic errors |
429 | Precondition Required | Request rate limit exceeded |
500 | Internal Server Error | An unknown error occurred on the server. |
Body Structure (200)¶
A successful response returns the new mesh object.
For details about mesh objects, see the Field Guide section.
Examples¶
Mesh Successfully Copied (200)¶
curl -X 'POST' -H 'Authorization: Bearer RWLzh098vuF3068r73FI7nF2RORf' -H 'Content-Type: application/json' -v 'https://developer.api.autodesk.com/ps/v1/geom/meshes/rename' -d '{
"id":"2c8eb53e-e62b-45de-9209-de4c66017170",
"name": "mesh-new-name"
}'
{
"id": "f45ec0ac-314e-4d97-94db-cfbbdd609b7a",
"name": "mesh-new-name",
"geom": {
"bounding_box": {
"max": [
31.225000381469727,
22.575000762939453,
12.225000381469727
],
"min": [
-31.225000381469727,
-41,
-12.225000381469727
]
},
"has_uvs": false,
"num_triangles": 4278,
"num_vertices": 2131
},
"transform": [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
1,
0
]
],
"analyzed": false
}