Parameters

NameTypeRequired?
tool_idtextyes
project_idtextyes
propertiestext (stringified JSON)yes

Use

Create a new asset using the given tool and properties under a given project

NOTE: Properties are passed as a stringified JSON object. This means that the entire JSON object must be encased in quotes and inner quotes must be escaped.

Examples

mutation MyMutation {
	createAsset(projectId: "123abc", properties: "{\"property\": \"value\"}", toolId: "test_tool") {
  	 id
	}
}
# create asset with URL field type
mutation MyMutation {
  createAsset(projectId: "123abc", properties: "{\"URL\": {\"URL\": \"https://app.unearthlabs.com\", \"display\": \"Unearth URL\"}}", toolId: "test_tool") {
    id
  }
}