Unicat API Reference

Up - API Reference - Home


/api/projects/delete_icon

Requires JWT.

Delete the icon for the project.

Request

POST /api/projects/delete_icon
Authorization: Bearer <JWT>

{
    "project": "<project gid>",
}

project the gid of the project that has its icon deleted

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {
        "project": "<project gid>",
    },
    "data": {
        "cc.projects": {
            "<project gid>": {
                "gid": "<project gid>",
                "name": "Project Name",
                "icon": null,
                "owner": "<user gid>",
                "status": "active",

            }
        }
    }
}

result

project is the project gid you provided.

data

cc.projects is a dictionary with one entry for the project.

Error response

400 Bad request - missing argument
401 Unauthorized - missing or expired JWT 403 Forbidden - not the owner of this project
422 Unprocessable Entity - project not found