# 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 parameters Content-type: application/json - **name** (string) The name of the scope. It should be unique for the resource. - **description** (string | null) ## Responses ### 201: The created scope. #### Body Parameters: 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)