# Update One Atlas Resource Policy **PATCH /api/atlas/v2/orgs/{orgId}/resourcePolicies/{resourcePolicyId}** Update one Atlas Resource Policy for an org. [Atlas Resource Policies](https://dochub.mongodb.org/core/atlas-resource-policies) ## Servers - https://cloud.mongodb.com: https://cloud.mongodb.com () ## Authentication methods - Service accounts - Digest auth ## Parameters #### Path parameters - **orgId** (string) Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access. - **resourcePolicyId** (string) Unique 24-hexadecimal digit string that identifies an atlas resource policy. #### Query parameters - **envelope** (boolean) Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body. - **pretty** (boolean) Flag that indicates whether the response body should be in the prettyprint format. ## Body parameters Content-type: application/vnd.atlas.2024-08-05+json Atlas Resource Policy to update. - **description** (string) Description of the atlas resource policy. - **name** (string) Human-readable label that describes the atlas resource policy. - **policies** (array[object]) List of policies that make up the atlas resource policy. ## Responses ### 200: Ok #### Body Parameters: application/vnd.atlas.2024-08-05+json (object) - **createdByUser** (object) The user that last updated the atlas resource policy. - **createdDate** (string(date-time)) Date and time in UTC when the atlas resource policy was created. - **description** (string) Description of the atlas resource policy. - **id** (string) Unique 24-hexadecimal character string that identifies the atlas resource policy. - **lastUpdatedByUser** (object) The user that last updated the atlas resource policy. - **lastUpdatedDate** (string(date-time)) Date and time in UTC when the atlas resource policy was last updated. - **name** (string) Human-readable label that describes the atlas resource policy. - **orgId** (string) Unique 24-hexadecimal character string that identifies the organization the atlas resource policy belongs to. - **policies** (array[object]) List of policies that make up the atlas resource policy. - **version** (string) A string that identifies the version of the atlas resource policy. ### 400: Bad request. #### Body Parameters: application/vnd.atlas.2024-08-05+json (object) - **errorType** (string) Human-readable label that displays the type of an error. - **invalidPolicies** (array[object]) List of invalid policies containing details of their validation errors. ### 401: Unauthorized. #### Body Parameters: application/json (object) - **badRequestDetail** (object) Bad request detail. - **detail** (string) Describes the specific conditions or reasons that cause each type of error. - **error** (integer(int32)) HTTP status code returned with this error. - **errorCode** (string) Application error code returned with this error. - **parameters** (array[object]) Parameters used to give more information about the error. - **reason** (string) Application error message returned with this error. ### 403: Forbidden. #### Body Parameters: application/json (object) - **badRequestDetail** (object) Bad request detail. - **detail** (string) Describes the specific conditions or reasons that cause each type of error. - **error** (integer(int32)) HTTP status code returned with this error. - **errorCode** (string) Application error code returned with this error. - **parameters** (array[object]) Parameters used to give more information about the error. - **reason** (string) Application error message returned with this error. ### 404: Not Found. #### Body Parameters: application/json (object) - **badRequestDetail** (object) Bad request detail. - **detail** (string) Describes the specific conditions or reasons that cause each type of error. - **error** (integer(int32)) HTTP status code returned with this error. - **errorCode** (string) Application error code returned with this error. - **parameters** (array[object]) Parameters used to give more information about the error. - **reason** (string) Application error message returned with this error. ### 500: Internal Server Error. #### Body Parameters: application/json (object) - **badRequestDetail** (object) Bad request detail. - **detail** (string) Describes the specific conditions or reasons that cause each type of error. - **error** (integer(int32)) HTTP status code returned with this error. - **errorCode** (string) Application error code returned with this error. - **parameters** (array[object]) Parameters used to give more information about the error. - **reason** (string) Application error message returned with this error. [Powered by Bump.sh](https://bump.sh)