public function createEmbeddedDraft(Template $request)
    {

        $response = $this->rest->post(
            static::TEMPLATE_CREATE_EMBEDDED_DRAFT,
            $request->toEmbeddedDraftParams()
        );

        $this->checkResponse($response);

        return new Template($response);
    }
public function createEmbeddedDraft(Template $request)
    {

        $response = $this->rest->post(
            static::TEMPLATE_CREATE_EMBEDDED_DRAFT,
            $request->toEmbeddedDraftParams()
        );

        $this->checkResponse($response);

        return new Template($response);
    }
public function createEmbeddedDraft ( Template $ request ) { $ response = $ this -> rest -> post ( static :: TEMPLATE_CREATE_EMBEDDED_DRAFT , $ request -> toEmbeddedDraftParams ( ) ) ; $ this -> checkResponse ( $ response ) ; return new Template ( $ response ) ; }
The first step in an EmbeddedTemplate workflow.
Creates a draft template that can then be further set up in the template 'edit' stage.

@param  Template $request
@return Template
@throws BaseException
The first step in an EmbeddedTemplate workflow . Creates a draft template that can then be further set up in the template edit stage .