Design: Releasing components

Modified on Thu, 8 May at 11:32 AM

Using the mutation desReleaseComponents, you can release a component directly to your workspace library.

The mutation allows you to

  • Provide existing symbol IDs or symbol files
  • Provide existing footprint IDs or footprint files
  • Provide existing datasheet IDs or datasheet files


You can use our upload file service to return file IDs, following these guides:

How to use the Nexar File Service

Design: Where to find File IDs for Mutations

mutation DesReleaseComponent(
  $workspace: String!
  $releaseName: String!
  $symbolId: ID!
  $footprintId: ID!
  $namingSchemeId: ID!
  $lifeCycleDefinitionNodeId: ID!
  $datasheetId: ID!
  $datasheetNamingSchemeId: ID!
  $datasheetLifecycleId: ID!
  $datasheetFileId: ID!
  $datasheetFileRelativePath: ID!
) {
  desReleaseComponent(
    input: {
      workspaceUrl: $workspace
      componentReleaseFolder: $releaseName
      useExistingComponentReleaseFolder: false

      componentItemName: $releaseName
      componentDescription: "release test"
      componentRevisionNamingSchemeNodeId: $namingSchemeId
      componentLifeCycleDefinitionNodeId: $lifeCycleDefinitionNodeId
      parameters: { name: "param1", value: "val1" }

      datasheetReleaseFolder: "Released-26022025"

      symbol: {
        id: $symbolId
      } 
      footprints: [
        {
          id: $footprintId
        }
      ],
      datasheets: [ 
       {
          id: $datasheetId      
       },
       {
          file:  {
            fileId: $datasheetFileId
            relativePath: $datasheetFileRelativePath           
          }          
         lifeCycleDefinitionNodeId: $datasheetLifecycleId
         revisionNamingSchemeNodeId: $datasheetNamingSchemeId         
       }
      ]   
    }
  ) {
    errors {
      message
    }
  }
}

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article