---
descriptions:
  update_resource:
    resource_id: The ID of the resource to update (path parameter).
    name: The new name for the resource.
    description: The new description for the resource. Pass null to remove the description.
reference:
  curl:
    - key: update_resource
      id: update_resource
      url: /reference/fga/resource/update
      title: '/authorization/resources/:resource_id'
      type: PATCH
      parameters:
        - key: name
          type: string
          optional: true
          description: (update_resource.name)
        - key: description
          type: string | null
          optional: true
          description: (update_resource.description)
      returns:
        - (resource)
  js:
    - key: updateResource
      id: update_resource
      url: /reference/fga/resource/update
      title: authorization.updateResource()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: resourceId
              type: string
              description: (update_resource.resource_id)
            - key: name
              type: string
              optional: true
              description: (update_resource.name)
            - key: description
              type: string | null
              optional: true
              description: (update_resource.description)
      returns:
        - key: AuthorizationResource
          description: (resource.self)
originalPath: .tmp-workos-clone/packages/docs/content/reference/fga/resource/update.mdx
---

## Update a resource

Update an existing authorization resource. Only the fields provided will be updated.

<CodeBlock referenceId="update_resource">
  <CodeBlockTab title="Request" file="update-resource-request" />
  <CodeBlockTab title="Response" file="update-resource-response" />
</CodeBlock>
