code: public function create(Deployment $deployment)
      {
          $options = [
              'multipart' => [
                  [
                      'Content-Disposition' => 'form-data',
                      'name' => 'deployment-name',
                      'contents' => $deployment->getName()
                  ],
                  [
                      'Content-Disposition' => 'form-data',
                      'name' => 'deployment-source',
                      'contents' => $deployment->getSource()
                  ],
                  [
                      'Content-Disposition' => 'form-data',
                      'name' => 'tenant-id',
                      'contents' => $deployment->getTenantId()
                  ]
              ]
          ];
  
          foreach ($deployment->getFiles() as $file) {
              $options['multipart'][] = [
                  'Content-Disposition' => 'form-data',
                  'name' => basename($file),
                  'filename' => basename($file),
                  'contents' => fopen($file, 'r')
              ];
          }
  
          $object = $this->execute('POST', static::RESOURCE_CREATE, $options);
          $model = static::toModel($object);
  
          return $model;
      }
docs: Create deployment
  
  @param \Ds\Component\Camunda\Model\Deployment $deployment
  @return \Ds\Component\Camunda\Model\Deployment