Allow a service to be added to a canvas group via API
mikenikles
PROOP

8 months ago

Hi,

We create Railway services dynamically via GraphQL API. When we look at the project dashboard in the browser, it would be great to see the services added to an existing group in the canvas.

Under Review

0 Threads mention this feature

11 Replies

8 months ago

Would a groupId argument in the serviceCreate mutation work?


jr

Would a groupId argument in the serviceCreate mutation work?

mikenikles
PROOP

8 months ago

Yes, that would work in my case.


clashing
HOBBY

7 months ago

Mike, you are using https://backboard.railway.com/graphql/v2 as the base endpoint, right?


jr

Would a groupId argument in the serviceCreate mutation work?

clashing
HOBBY

7 months ago

That would work for pre-configured groups only. Ability to create a new one should also be there, later on


clashing

Mike, you are using https://backboard.railway.com/graphql/v2 as the base endpoint, right?

mikenikles
PROOP

7 months ago

Yes, that's right.


mikenikles

Yes, that's right.

clashing
HOBBY

7 months ago

Thanks for the confirmation


mikenikles

Yes, that's right.

clashing
HOBBY

7 months ago

Do personal tokens have the format: token_xxx, as opposed to plain project tokens?

And are you referring to the Docs to see the public API endpoints?


mikenikles

Yes, that's right.

clashing
HOBBY

7 months ago

Mike, can you please clarify this?

From where, do you grab the personal token, that does work for mutation queries (like redploying a service, and stuff like that). Is that token has a predefined format (like token_ before it), or is it just a random string?

If you can provide the link of the page form where you edit/delete the team/personal tokens, then it would be great.


clashing

Mike, can you please clarify this?From where, do you grab the personal token, that does work for mutation queries (like redploying a service, and stuff like that). Is that token has a predefined format (like token_ before it), or is it just a random string?If you can provide the link of the page form where you edit/delete the team/personal tokens, then it would be great.

mikenikles
PROOP

7 months ago


mikenikles

I get the token from https://railway.com/account/tokens.

clashing
HOBBY

7 months ago

Thanks for verifying that

Are the personal and team tokens displayed on the same page!

Do they follow a certain format, like token_? And you used them to do the mutation api calls?


clashing

Thanks for verifying thatAre the personal and team tokens displayed on the same page!Do they follow a certain format, like token_? And you used them to do the mutation api calls?

7 months ago

All tokens regardless of what permissions they hold are UUIDv4.


Loading...