Add a project's node template to a catalog
POST/api/add_catalog_node_template
Copies a project's node template into a catalog published from here.
The template's own files come across untouched; its configuration is rewritten so the id belongs to this catalog and no secret is carried over, and the library versions it pins are brought in alongside it. Nothing is published by this - the catalog is committed locally, and Publish is what sends it to the repository.
Request
Responses
- 200
- 400
- 404
- 409
- 422
Successful Response
Invalid slug or node type id
Catalog, project or template not found
The catalog already has that template and overwrite was not asked for, or the node type id is taken
Validation Error