---
agentTools:
  projectIndex: https://motaword.readme.io/llms.txt
---

# Update global style guide

Update your corporate account's global style guide.

[block:callout]
{
  "type": "danger",
  "title": "",
  "body": "This endpoint is available only for corporate account customers."
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.5.2"
  },
  "servers": [
    {
      "url": "https://api.motaword.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "access_token",
        "in": "query",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/styleguide": {
      "post": {
        "summary": "Update global style guide",
        "description": "",
        "operationId": "update-global-style-guide",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "styleguide"
                ],
                "properties": {
                  "styleguide": {
                    "type": "string",
                    "description": "Style guide file. Currently supported formats: .pdf, .docx, .txt",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"status\": \"success\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": {\n        \"code\": \"FileTooLarge\",\n        \"http_code\": 400,\n        \"message\": \"FileTooLarge\",\n        \"help\": \"https://www.motaword.com/developer/support\"\n    }\n}\n{\n    \"error\": {\n        \"code\": \"FileTooSmall\",\n        \"http_code\": 400,\n        \"message\": \"FileTooSmall\",\n        \"help\": \"https://www.motaword.com/developer/support\"\n    }\n}\n{\n    \"error\": {\n        \"code\": \"MissingCorporateAccount\",\n        \"http_code\": 400,\n        \"message\": \"MissingCorporateAccount\",\n        \"help\": \"https://www.motaword.com/developer/support\"\n    }\n}"
                  }
                }
              }
            }
          },
          "405": {
            "description": "405",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": {\n        \"code\": \"UnsupportedStyleGuideFormat\",\n        \"http_code\": 405,\n        \"message\": \"UnsupportedStyleGuideFormat\",\n        \"help\": \"https://www.motaword.com/developer/support\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "UnsupportedStyleGuideFormat"
                        },
                        "http_code": {
                          "type": "integer",
                          "example": 405,
                          "default": 0
                        },
                        "message": {
                          "type": "string",
                          "example": "UnsupportedStyleGuideFormat"
                        },
                        "help": {
                          "type": "string",
                          "example": "https://www.motaword.com/developer/support"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6305402c9807941f67a92eb7:56a764d651cacd19004644c6"
}
```