I’m trying to change an image source using a service
vitor-luca
PROOP

a year ago

I’m working with an API to accomplish this, but I’m having trouble figuring out the correct approach. Could someone please help me?

Solved

5 Replies

vitor-luca
PROOP

a year ago

d180ce36-bd8b-471f-b94d-9d8c9f8dbcfd


a year ago

Hey, you're probably looking for serviceInstanceUpdate mutation

mutation {
  serviceInstanceUpdate(
    serviceId: "service-id",
    environmentId: "env-id",
    input: { source: {image: "n8nio/n8n" } }
  )
}

a year ago

and you can get the environment id by using the project query

query GetProjectEnvironments {
  project(id: "project-id") {
    environments {
      edges {
        node {
          id
          name
        }
      }
    }
  }
}

vitor-luca
PROOP

a year ago

Yes, that’s exactly it. Thanks a lot!


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...