Portainer icon

Portainer

Work with Portainer API data to manage Docker

Team → Create

AI-generated

Overview

This node operation creates a new team in Portainer by sending a POST request to the Portainer API with the specified team name. It is useful for managing teams and members within a Docker environment managed by Portainer, allowing users to programmatically add new teams.

Use Case Examples

  1. Creating a new team named 'Development Team' to organize members working on development projects.
  2. Automating team creation as part of onboarding new departments in an organization using Portainer.

Properties

Name Meaning
Team Name The name of the team to be created, which is required for the creation operation.
Request Options Settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • body - The JSON response body from the Portainer API after creating the team, typically containing details of the newly created team such as its ID and name.

Dependencies

  • Portainer API with an API key credential for authentication

Troubleshooting

  • Ensure the API key credential is correctly configured and has permissions to create teams in Portainer.
  • Verify the base URL of the Portainer API is correct and accessible from the n8n environment.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security implications.
  • Check that the 'Team Name' property is provided and not empty, as it is required for the creation operation.

Links

Discussion