code: private function getAttachmentEndPoint(string $idArticle, string $field): string
      {
          return $this->replaceEndPointId(
              $idArticle,
              $this->attachmentUrl[$field]
          );
      }
docs: get Attachment Submission url Endpoint at rest API