src/components/api/api__base.ts [223:234]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    subResourcePath: string,
    attachment: Attachment,
    visibility: Visibility | null,
  ): Promise<Attachment> {
    const queryString: string = qs.stringify({fields: issueFields.VISIBILITY.toString()});
    return await this.makeAuthorizedRequest(
      `${this.youTrackApiUrl}/${subResourcePath}/attachments/${attachment.id}?${queryString}`,
      'POST',
      {
        visibility,
      },
    );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/components/api/api__base.ts [238:250]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    subResourcePath: string,
    attachment: Attachment,
    visibility: Visibility | null,
  ): Promise<Attachment> {
    const queryString: string = qs.stringify({fields: issueFields.VISIBILITY.toString()});
    return await this.makeAuthorizedRequest(
      `${this.youTrackApiUrl}/${subResourcePath}/attachments/${attachment.id}?${queryString}`,
      'POST',
      {
        // name: attachment.name,
        visibility,
      },
    );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



