updateEstablishmentFromInsee
Update an establishment's details from the details they have exposed on the INSEE Sirene API.
Arguments
Info on the establishment to be updated.
Returns
UpdateEstablishmentFromInseeUpdate an establishment's details from the details they have exposed on the INSEE Sirene API.
Possible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-FR-11102: Invalid SIRET.
- KT-FR-11106: The viewer is not authorized to execute the query/mutation. Check the ownership/permissions of provided data.
- KT-FR-11107: No establishment could be found with the provided input.
- KT-FR-11108: The details of the given establishment cannot be disclosed by INSEE.
- KT-FR-11109: The INSEE API lookup functionality is unavailable.
Allowed Viewers
Required Permissions
Can query establishments Can update establishmentsQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation UpdateEstablishmentFromInsee($input: UpdateEstablishmentFromInseeInput!) {
updateEstablishmentFromInsee(input: $input) {
establishment {
...EstablishmentTypeFragment
}
}
}
Variables
{
"input": UpdateEstablishmentFromInseeInput
}
Response
{
"data": {
"updateEstablishmentFromInsee": {
"establishment": EstablishmentType
}
}
}