Substitute your cloudId and the name of the new component.
Substitute the typeId with your component’s type. The valid values are SERVICE, LIBRARY, APPLICATION, CAPABILITY, CLOUD RESOURCE, DATA PIPELINE, MACHINE LEARNING MODEL, UI ELEMENT, WEBSITE, OTHER.
From the top navigation of the GraphQL API explorer, select Execute query
You'll see the id, name and typeId of your newly created component in the results area on the right side.
Components have more attributes other than name and typeId. For a complete list of input parameters to create components using the API, see the createComponent mutation in the Compass GraphQL API reference documentation.
We recommend that you don't exceed 20,000 components in Compass, beyond which you may notice some performance degradation. We are working on scaling the solution to increase the limits over time.
If you get an error when attempting to create the component, make sure you’ve provided:
the entire cloudId for your Atlassian site and there are no typos
values for name and typeId, which are both mandatory
a valid option (SERVICE, LIBRARY, APPLICATION, CAPABILITY, CLOUD RESOURCE, DATA PIPELINE, MACHINE LEARNING MODEL, UI ELEMENT, WEBSITE, OTHER) for typeId
You can perform numerous other operations using the Compass GraphQL API. To learn more, see the following resources: