code: public function create(Submission $submission, Parameters $parameters = null): Submission
      {
          $resource = str_replace('{form}', $submission->getForm(), static::RESOURCE_LIST);
          $options = [
              'headers' => [
                  'Accept' => 'application/json',
                  'Content-Type' => 'application/json'
              ],
              'json' => [
                  'data' => (array) $submission->getData()
              ]
          ];
  
          if ($parameters) {
              $options['query'] = (array) $parameters->toObject(true);
          }
  
          $object = $this->execute('POST', $resource, $options);
  
          if (!is_bool($object)) {
              $submission = static::toModel($object);
          }
  
          return $submission;
      }
docs: Create submission
  
  @param \Ds\Component\Formio\Model\Submission $submission
  @param \Ds\Component\Formio\Query\SubmissionParameters $parameters
  @return \Ds\Component\Formio\Model\Submission
  @throws \Ds\Component\Formio\Exception\ValidationException