---
updatedAt: 2025-06-04T21:28:10.000Z
agentTools:
  projectIndex: https://developer.simpplr.com/llms.txt
---

# Content Approval

Use this API to approve or reject newly created content

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.ec.simpplr.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/contents/site/{site_id}/content/{content_id}/approval": {
      "post": {
        "summary": "Content Approval",
        "description": "Use this API to approve or reject newly created content",
        "operationId": "content-approval",
        "parameters": [
          {
            "name": "site_id",
            "in": "path",
            "description": "The site id to which the content belongs",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "content_id",
            "in": "path",
            "description": "The id of the content",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "x-user-email",
            "in": "header",
            "description": "User's email used to login in salesforce",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "string",
                    "description": "The action you want to take on the content",
                    "default": "publish",
                    "enum": [
                      "publish",
                      "unpublish"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```