Skip to main content

updateComponent Mutation

Users should not be able to actually update a component, but will use this mutation to update the "starred" status

Access is permitted when any of the following condition(s) are met: 1. The object's 'public' attribute equals: True. 2. The signed-in User has any of the following permissions for the associated Organization: [org_admin_component_permissions, org_manage_components, org_view_components]. 3. The signed-in User has any of the following permissions for any version of the object: [component_view, component_edit, component_remove, component_admin_permissions, component_publish_new_version]. 4. The signed-in User has any of the following permissions for the object's 'customer' attribute: [customer_admin_component_permissions, customer_manage_components, customer_view_components].

Input fields (UpdateComponentInput!)#

ArgumentTypeDescription
starredBooleanIndicates whether the record is starred by the signed-in User.
idIDThe ID of the Component to mutate.
clientMutationIdStringA unique identifier for the client performing the mutation.

Return fields (UpdateComponentPayload)#

clientMutationId (String)#
component (Component)#
errors ([ErrorType])#