Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/orderings/update

Requires JWT.

Rename an ordering.

Request

POST /api/p/<project gid>/orderings/update
Authorization: Bearer <JWT>

{
    "ordering": "f6c547a3-23ec-4e70-92bc-1826ae53570a",
    "name": "Documentation Ordering"
}

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {
        "project": "<project gid>"
    },
    "data": {
        "cc.projects": {
            "<project gid>": {
                ,
                "options": {
                    "orderings": {
                        "87b53a4e-359d-45c7-81cb-5e1c3ef444ec": "Catalog",
                        "e4c44479-56ca-47c0-b1f1-9acf40ee3459": "Webshop",
                        "f6c547a3-23ec-4e70-92bc-1826ae53570a": "Documentation Ordering"
                    },
                   
                },
                
            }
        }
    }
}

result

project the current project.

data

cc.projects Project updated with renamed ordering.

Error responses

400 Bad request - missing parameters or wrong type or value
401 Unauthorized - missing or expired JWT
403 Forbidden - not a member of this project