# Create API resource scope **POST /api/resources/{resourceId}/scopes** Create a new scope (permission) for an API resource. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **resourceId** (string) The unique identifier of the resource. ### Body: application/json (object) - **name** (string) The name of the scope. It should be unique for the resource. - **description** (string | null) ## Responses ### 201 The created scope. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **resourceId** (string) - **name** (string) - **description** (string | null) - **createdAt** (number) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found ### 422 Unprocessable Content [Powered by Bump.sh](https://bump.sh)